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
+27-23Lines changed: 27 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -334,63 +334,63 @@ If you're starting or stopping input handlers manually, you'll have to make some
334
334
335
335
### API Changes / New Features
336
336
337
-
* Phaser now starts the Pointer Events handler (with capture off) or the Mouse handler (with capture off), but not both. This makes input behavior more consistent and avoids some rare conflicts between the two when running simultaneously.
337
+
* Phaser now starts the [Pointer Events handler](https://photonstorm.github.io/phaser-ce/Phaser.MSPointer.html) (with capture off) or the [Mouse handler](https://photonstorm.github.io/phaser-ce/Phaser.Mouse.html) (with capture off), but not both. This makes input behavior more consistent and avoids some rare conflicts between the two when running simultaneously.
338
338
339
339
If you want to disable the Pointer Events handler, pass `{ mspointer: false }` in your game config. The Mouse handler will be used instead.
340
340
341
-
If you want to run the Mouse handler as well, you can start it manually. You should also turn on capture for the Pointer Events handler to avoid duplicate events:
341
+
If you want to run both handlers together, you can start the Mouse handler manually. You should also turn on capture for the Pointer Events handler to avoid duplicate events:
342
342
343
343
```javascript
344
344
game.input.mouse.start();
345
345
game.input.mspointer.capture=true;
346
346
```
347
347
348
-
* Mouse wheel input was moved to `input.mouseWheel`. The changed properties are
348
+
*[Mouse wheel input](https://photonstorm.github.io/phaser-ce/Phaser.MouseWheel.html) was moved to `input.mouseWheel`. The changed properties are
There is a new Signal, `input.pointerLock.onError`, dispatched when a request fails.
365
365
366
-
Beware that Chrome < 68 doesn't pass movement values when using Pointer Events with pointer lock, so you should use the Mouse handler instead for that.
366
+
Beware that [Chrome < 68 doesn't pass movement values when using Pointer Events with pointer lock](https://bugs.chromium.org/p/chromium/issues/detail?id=836995), so you should use the Mouse handler instead for that.
367
367
368
368
*`game.debug.inputInfo()` now shows which input handlers and pointers are active.
369
369
370
370
* All the input handlers have an `active` property that shows whether they've been started. Their `start` methods return true if they've been started or false otherwise.
371
371
372
-
* The `skipFrames` argument in AnimationParser#spritesheet now works as an offset (#514). When positive, it's an offset from the start of the parsed frame list; when negative, it's an offset from the end. Negative `frameWidth` and `frameHeight` arguments are no longer allowed.
372
+
* The `skipFrames` argument in [AnimationParser#spriteSheet](https://photonstorm.github.io/phaser-ce/Phaser.AnimationParser.html#_spriteSheet) now works as an offset (#514). When positive, it's an offset from the start of the parsed frame list; when negative, it's an offset from the end. Negative `frameWidth` and `frameHeight` arguments are no longer allowed.
373
373
374
374
* preRender() and postRender() hooks are no longer called for the HEADLESS renderer.
375
375
376
-
*`game.make.group()` no longer assigns a default parent. This is more consistent with the rest of the game.make methods (#525). Use `game.add.group()` instead to add the Group to the game world.
376
+
*`game.make.group()` no longer assigns a default parent. This is more consistent with the rest of the [game.make](https://photonstorm.github.io/phaser-ce/Phaser.GameObjectCreator.html) methods (#525). Use `game.add.group()` instead to add the Group to the game world.
377
377
378
-
* Point.parse() no longer converts coordinates to integers (#502). Use the new method Point.trunc() as well if you want the previous behavior.
378
+
*[Point.parse()](https://photonstorm.github.io/phaser-ce/Phaser.Point.html#_parse) no longer converts coordinates to integers (#502). Use the new method [Point.trunc()](https://photonstorm.github.io/phaser-ce/Phaser.Point.html#_trunc) as well if you want the previous behavior.
379
379
380
-
* The default Debug#font is now '14px monospace'.
380
+
* The default [Debug#font](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#font) is now '14px monospace'.
381
381
382
382
* The unused and deprecated property MSPointer#button was removed.
383
383
384
384
### New Features
385
385
386
-
* States have a new postUpdate method hook. It's called after game objects have received all their own updates (including physics), but before the Stage has calculated the final transformations.
387
-
* Debug#spriteInfo shows the sprite's parent, if any.
388
-
* When a sprite is being dragged you can read its change in position (as `deltaX`, `deltaY`) in the onDragUpdate handler.
389
-
* Phaser.Math.trunc() truncates a number.
386
+
* States have a new [postUpdate](https://photonstorm.github.io/phaser-ce/Phaser.State.html#postUpdate) method hook. It's called after game objects have received all their own updates (including physics), but before the Stage has calculated the final transformations.
387
+
*[Debug#spriteInfo](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#spriteInfo) shows the sprite's parent, if any.
388
+
* When a sprite is being dragged you can read its change in position (as `deltaX`, `deltaY`) in the [onDragUpdate](https://photonstorm.github.io/phaser-ce/Phaser.Events.html#onDragUpdate) handler.
389
+
*[Phaser.Math.trunc()](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#trunc) truncates a number.
* Debug#device shows device graphics, audio, and input support. It may be helpful on devices where you can't see `console` output easily.
392
-
* Debug#pointer shows the pointer's movementX/movementY values and button states (for mouse pointers).
393
-
* maxPointers can be passed in the game config, setting Input#maxPointers.
391
+
*[Debug#device](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#device) shows device graphics, audio, and input support. It may be helpful on devices where you can't see `console` output easily.
392
+
*[Debug#pointer](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#pointer) shows the pointer's movementX/movementY values and button states (for mouse pointers).
393
+
*`maxPointers` can be passed in the [game config](https://photonstorm.github.io/phaser-ce/global.html#GameConfig), setting [Input#maxPointers](https://photonstorm.github.io/phaser-ce/Phaser.Input.html#maxPointers).
394
394
395
395
### Updates
396
396
@@ -399,7 +399,11 @@ If you're starting or stopping input handlers manually, you'll have to make some
399
399
### Bug Fixes
400
400
401
401
* Masks are no longer disabled by getBounds() and are excluded from bounds calculations (#334).
402
-
* Sprites' bringToTop() and sendToBack() methods now work as expected for all parent types, not just Groups (#549).
402
+
* Sprites' [bringToTop()](https://photonstorm.github.io/phaser-ce/Phaser.Sprite.html#bringToTop) and [sendToBack()](https://photonstorm.github.io/phaser-ce/Phaser.Sprite.html#sendToBack) methods now work as expected for all parent types, not just Groups (#549).
0 commit comments