Skip to content

Commit 5fe5dbc

Browse files
authored
Merge pull request #596 from photonstorm/release/v2.11.1
Phaser CE Version 2.11.1
2 parents 1eb1d1f + 6614c60 commit 5fe5dbc

File tree

224 files changed

+8983
-8128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+8983
-8128
lines changed

CHANGELOG.md

+37
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,43 @@
44

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

7+
## Version 2.11.1 - 2 October 2018
8+
9+
### Bug Fixes
10+
11+
* Fixed an error passing `box2d` options in the game configuration settings (#553).
12+
* Fixed some compressed texture formats failing to load (#562).
13+
* 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).
14+
* Fixed an inconsistent return value in BitmapData#copy (#580).
15+
* Tweens are now cleaned up completely when destroying the game (#581).
16+
* Game now nulls a reference to itself from PIXI after destroy (#583).
17+
* Fixed a BitmapFont frame error when using trim frame in atlas (#587).
18+
* Fixed BitmapData#shadow ignoring blur or x/y offset when set to 0 (#591).
19+
20+
### Updates
21+
22+
* 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).
23+
* 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).
24+
25+
### TypeScript definitions
26+
27+
* Fixed the definition for bitmapText() in GameObjectFactory (#561).
28+
* Fixed the definition for clear() in RenderTexture (#573).
29+
* Fixed the definition for Video volume.
30+
31+
### Documentation
32+
33+
* 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.
34+
* Clarified the `spacing` argument in Loader#spritesheet (#448, #559).
35+
* Corrected P2#createGearConstraint (#566).
36+
* Corrected Tilemap#copy, Tilemap#replace (#586).
37+
* Typo (#594).
38+
* Corrected Key#upDuration, Keyboard#upDuration (#595).
39+
40+
### Thanks
41+
42+
@B10215029, @CorayThan, @FostUK, @Jazcash, @Lucas-C, @Mertank, @Nek-, @aeonwilliams, @dywedir, @foreverip, @giniwren, @josalmi, @joshlory, @rydash, @samme, @tiagokeller, @zhaxiu3
43+
744
## Version 2.11.0 - 26 June 2018
845

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

README.md

+9-86
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Thousands of developers worldwide use Phaser. From indies and multi-national dig
88

99
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.
1010

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

1313
- **Visit:** The [Phaser website](http://phaser.io) and follow on [Twitter](https://twitter.com/photonstorm) (#[phaserjs](https://twitter.com/hashtag/phaserjs))
1414
- **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]
128128
[Phaser CE is on jsDelivr](http://www.jsdelivr.com/projects/phaser-ce), a "super-fast CDN for developers". Include the following in your html:
129129

130130
```html
131-
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.11.0/build/phaser.js"></script>
131+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.11.1/build/phaser.js"></script>
132132
```
133133

134134
or the minified version:
135135

136136
```html
137-
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.11.0"></script>
137+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.11.1"></script>
138138
```
139139

140-
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.11.0/build/custom/) are available too.
140+
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.11.1/build/custom/) are available too.
141141

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

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

329329
# Change Log
330330

331-
## Unreleased
331+
## Version 2.11.1 - 2 October 2018
332332

333333
### Bug Fixes
334334

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

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

368-
## Version 2.11.0 - 26 June 2018
369-
370-
If you're starting or stopping input handlers manually, you'll have to make some simple changes to your code.
371-
372-
### API Changes / New Features
373-
374-
* 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.
375-
376-
If you want to disable the Pointer Events handler, pass `{ mspointer: false }` in your game config. The Mouse handler will be used instead.
377-
378-
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:
379-
380-
```javascript
381-
game.input.mouse.start();
382-
game.input.mspointer.capture = true;
383-
```
384-
385-
* [Mouse wheel input](https://photonstorm.github.io/phaser-ce/Phaser.MouseWheel.html) was moved to `input.mouseWheel`. The changed properties are
386-
387-
- `input.mouse.wheelDelta``input.mouseWheel.delta`
388-
- `input.mouse.mouseWheelCallback``input.mouseWheel.callback`
389-
390-
The old properties will keep working for now.
391-
392-
* [Pointer lock input](https://photonstorm.github.io/phaser-ce/Phaser.PointerLock.html) was moved to `input.pointerLock`. The changed properties are
393-
394-
- `input.mouse.pointerLock``input.pointerLock.onChange`
395-
- `input.mouse.requestPointerLock()``input.pointerLock.request()`
396-
- `input.mouse.locked``input.pointerLock.locked`
397-
- `input.mouse.releasePointerLock()``input.pointerLock.exit()`
398-
399-
The old properties will keep working for now.
400-
401-
There is a new Signal, `input.pointerLock.onError`, dispatched when a request fails.
402-
403-
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.
404-
405-
* `game.debug.inputInfo()` now shows which input handlers and pointers are active.
406-
407-
* 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.
408-
409-
* 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.
410-
411-
* preRender() and postRender() hooks are no longer called for the HEADLESS renderer.
412-
413-
* `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.
414-
415-
* [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.
416-
417-
* The default [Debug#font](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#font) is now '14px monospace'.
418-
419-
* The unused and deprecated property MSPointer#button was removed.
420-
421-
### New Features
422-
423-
* 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.
424-
* [Debug#spriteInfo](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#spriteInfo) shows the sprite's parent, if any.
425-
* 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.
426-
* [Phaser.Math.trunc()](https://photonstorm.github.io/phaser-ce/Phaser.Math.html#trunc) truncates a number.
427-
* Phaser.EmptyRectangle replaces PIXI.EmptyRectangle.
428-
* [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.
429-
* [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).
430-
* `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).
431-
432-
### Updates
433-
434-
* Removed the unnecessary 'Audio source already exists' warning.
435-
436-
### Bug Fixes
437-
438-
* Masks are no longer disabled by getBounds() and are excluded from bounds calculations (#334).
439-
* 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).
440-
441-
### Thanks
442-
443-
@giniwren, @griever989, @mindcity, @omretterry, @photonstorm, @samme, @Siri0n, @tobspr
444-
445368
For changes in previous releases please see the extensive [Change Log](https://github.com/photonstorm/phaser-ce/blob/master/CHANGELOG.md).
446369

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

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

467-
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.0/phaser.js
468-
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.0/phaser.min.js
469-
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.11.0.zip
470-
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.11.0.tar.gz
390+
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.1/phaser.js
391+
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.11.1/phaser.min.js
392+
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.11.1.zip
393+
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.11.1.tar.gz
471394
[clone-http]: https://github.com/photonstorm/phaser.git
472395
[clone-ssh]: ssh://git@github.com:photonstorm/phaser.git
473396
[clone-svn]: https://github.com/photonstorm/phaser

build/custom/creature.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/p2.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)