Skip to content

Commit

Permalink
Merge pull request #596 from photonstorm/release/v2.11.1
Browse files Browse the repository at this point in the history
Phaser CE Version 2.11.1
photonstorm authored Oct 3, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 1eb1d1f + 6614c60 commit 5fe5dbc
Showing 224 changed files with 8,983 additions and 8,128 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,43 @@

See [README: Change Log: Unreleased](README.md#unreleased).

## Version 2.11.1 - 2 October 2018

### Bug Fixes

* Fixed an error passing `box2d` options in the game configuration settings (#553).
* Fixed some compressed texture formats failing to load (#562).
* Fixed an issue where if the WebGL renderer failed to initialize that RenderTexture's would still try to use it if no renderer was provided (#575).
* Fixed an inconsistent return value in BitmapData#copy (#580).
* Tweens are now cleaned up completely when destroying the game (#581).
* Game now nulls a reference to itself from PIXI after destroy (#583).
* Fixed a BitmapFont frame error when using trim frame in atlas (#587).
* Fixed BitmapData#shadow ignoring blur or x/y offset when set to 0 (#591).

### Updates

* AnimationParser.spriteSheet now tells you the minimum image dimensions it expects if it fails to produce at least one complete frame from the spritesheet (#559).
* Game now checks SoundManager's `muteOnPause` property whenever the game's `paused` property is set so one can control whether sounds play when the game is manually paused. Previously, the property was only used when the game focus was lost in the DOM (#572).

### TypeScript definitions

* Fixed the definition for bitmapText() in GameObjectFactory (#561).
* Fixed the definition for clear() in RenderTexture (#573).
* Fixed the definition for Video volume.

### Documentation

* Changed [the game configuration object's](https://photonstorm.github.io/phaser-ce/global.html#GameConfig) `canvasID` property name. The previous name, `canvasId`, was incorrect and would be ignored.
* Clarified the `spacing` argument in Loader#spritesheet (#448, #559).
* Corrected P2#createGearConstraint (#566).
* Corrected Tilemap#copy, Tilemap#replace (#586).
* Typo (#594).
* Corrected Key#upDuration, Keyboard#upDuration (#595).

### Thanks

@B10215029, @CorayThan, @FostUK, @Jazcash, @Lucas-C, @Mertank, @Nek-, @aeonwilliams, @dywedir, @foreverip, @giniwren, @josalmi, @joshlory, @rydash, @samme, @tiagokeller, @zhaxiu3

## Version 2.11.0 - 26 June 2018

If you're starting or stopping input handlers manually, you'll have to make some simple changes to your code.
95 changes: 9 additions & 86 deletions README.md
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ Thousands of developers worldwide use Phaser. From indies and multi-national dig

Phaser v2 was built and maintained by [Photon Storm](http://www.photonstorm.com) and turned over to the community (as Phaser CE) in November 2016. [Phaser v3](http://phaser.io/phaser3) is in active development.

The [current Phaser CE release is 2.11.0](https://github.com/photonstorm/phaser-ce/releases/tag/v2.11.0).
The [current Phaser CE release is 2.11.1](https://github.com/photonstorm/phaser-ce/releases/tag/v2.11.1).

- **Visit:** The [Phaser website](http://phaser.io) and follow on [Twitter](https://twitter.com/photonstorm) (#[phaserjs](https://twitter.com/hashtag/phaserjs))
- **Learn:** [API Docs](https://photonstorm.github.io/phaser-ce/), [Support Forum][forum] and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)
@@ -128,16 +128,16 @@ Please see additional steps for [Browserify/CommonJS](#browserify) and [Webpack]
[Phaser CE is on jsDelivr](http://www.jsdelivr.com/projects/phaser-ce), a "super-fast CDN for developers". Include the following in your html:

```html
<script src="//cdn.jsdelivr.net/npm/[email protected].0/build/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected].1/build/phaser.js"></script>
```

or the minified version:

```html
<script src="//cdn.jsdelivr.net/npm/[email protected].0"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected].1"></script>
```

[Custom builds](https://cdn.jsdelivr.net/npm/[email protected].0/build/custom/) are available too.
[Custom builds](https://cdn.jsdelivr.net/npm/[email protected].1/build/custom/) are available too.

<a name="getting-started"></a>

@@ -328,7 +328,7 @@ Written something cool in Phaser? Please tell us about it in the [forum][forum],

# Change Log

## Unreleased
## Version 2.11.1 - 2 October 2018

### Bug Fixes

@@ -365,83 +365,6 @@ Written something cool in Phaser? Please tell us about it in the [forum][forum],

@B10215029, @CorayThan, @FostUK, @Jazcash, @Lucas-C, @Mertank, @Nek-, @aeonwilliams, @dywedir, @foreverip, @giniwren, @josalmi, @joshlory, @rydash, @samme, @tiagokeller, @zhaxiu3

## Version 2.11.0 - 26 June 2018

If you're starting or stopping input handlers manually, you'll have to make some simple changes to your code.

### API Changes / New Features

* 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.

If you want to disable the Pointer Events handler, pass `{ mspointer: false }` in your game config. The Mouse handler will be used instead.

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:

```javascript
game.input.mouse.start();
game.input.mspointer.capture = true;
```

* [Mouse wheel input](https://photonstorm.github.io/phaser-ce/Phaser.MouseWheel.html) was moved to `input.mouseWheel`. The changed properties are

- `input.mouse.wheelDelta``input.mouseWheel.delta`
- `input.mouse.mouseWheelCallback``input.mouseWheel.callback`

The old properties will keep working for now.

* [Pointer lock input](https://photonstorm.github.io/phaser-ce/Phaser.PointerLock.html) was moved to `input.pointerLock`. The changed properties are

- `input.mouse.pointerLock``input.pointerLock.onChange`
- `input.mouse.requestPointerLock()``input.pointerLock.request()`
- `input.mouse.locked``input.pointerLock.locked`
- `input.mouse.releasePointerLock()``input.pointerLock.exit()`

The old properties will keep working for now.

There is a new Signal, `input.pointerLock.onError`, dispatched when a request fails.

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.

* `game.debug.inputInfo()` now shows which input handlers and pointers are active.

* 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.

* 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.

* preRender() and postRender() hooks are no longer called for the HEADLESS renderer.

* `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.

* [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.

* The default [Debug#font](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#font) is now '14px monospace'.

* The unused and deprecated property MSPointer#button was removed.

### New Features

* 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.
* [Debug#spriteInfo](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#spriteInfo) shows the sprite's parent, if any.
* 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.
* [Phaser.Math.trunc()](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#trunc) truncates a number.
* Phaser.EmptyRectangle replaces PIXI.EmptyRectangle.
* [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.
* [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).
* `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).

### Updates

* Removed the unnecessary 'Audio source already exists' warning.

### Bug Fixes

* Masks are no longer disabled by getBounds() and are excluded from bounds calculations (#334).
* 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).

### Thanks

@giniwren, @griever989, @mindcity, @omretterry, @photonstorm, @samme, @Siri0n, @tobspr

For changes in previous releases please see the extensive [Change Log](https://github.com/photonstorm/phaser-ce/blob/master/CHANGELOG.md).

# License
@@ -464,10 +387,10 @@ All rights reserved.

[![Analytics](https://ga-beacon.appspot.com/UA-44006568-2/phaser/index)](https://github.com/igrigorik/ga-beacon)

[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.0/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.0/phaser.min.js
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.11.0.zip
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.11.0.tar.gz
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.1/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.1/phaser.min.js
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.11.1.zip
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.11.1.tar.gz
[clone-http]: https://github.com/photonstorm/phaser.git
[clone-ssh]: ssh://[email protected]:photonstorm/phaser.git
[clone-svn]: https://github.com/photonstorm/phaser
2 changes: 1 addition & 1 deletion build/custom/creature.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/custom/p2.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5fe5dbc

Please sign in to comment.