Skip to content

Commit c5a7bcf

Browse files
authored
Merge pull request #440 from photonstorm/release/v2.10.0
Release Phaser CE v2.10.0
2 parents 7e97de2 + eaf49b6 commit c5a7bcf

File tree

225 files changed

+14730
-10948
lines changed

Some content is hidden

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

225 files changed

+14730
-10948
lines changed

CHANGELOG.md

+59
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,65 @@
44

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

7+
## Version 2.10.0 - 18 January 2018
8+
9+
### New Features
10+
11+
* New [game config](https://photonstorm.github.io/phaser-ce/global.html#GameConfig) arguments:
12+
- `alignH`, `alignV`
13+
- `crisp`
14+
- `disableStart`
15+
- `failIfMajorPerformanceCaveat`
16+
- `roundPixels`
17+
- `scaleH`, `scaleV`, `trimH`, `trimV`
18+
* New game loop features:
19+
- Phaser.Game#dropFrames skips renders when the game loop delta time is spiraling upwards (#314).
20+
- Phaser.Game#forceSingleRender can be set to `false` to reduce the render rate to match Phaser.Time#desiredFps (#313).
21+
- Phaser.Time#ups tracks updates per second when [advanced timing](https://photonstorm.github.io/phaser-ce/Phaser.Time#advancedTiming) is enabled.
22+
- Phaser.Time#rps tracks renders per second when [advanced timing](https://photonstorm.github.io/phaser-ce/Phaser.Time#advancedTiming) is enabled.
23+
* [Phaser.Color](https://photonstorm.github.io/phaser-ce/Phaser.Color.html) constants AQUA, BLACK, BLUE, GRAY, GREEN, ORANGE, RED, VIOLET, WHITE, and YELLOW. You can use these anywhere you use a numeric (hex) color value: [Graphics](https://photonstorm.github.io/phaser-ce/Phaser.Graphics.html), [Sprite#tint](https://photonstorm.github.io/phaser-ce/Phaser.Sprite.html#tint), [Stage#backgroundColor](https://photonstorm.github.io/phaser-ce/Phaser.Stage.html#backgroundColor).
24+
* Phaser.Game#pendingDestroy marks the game for destruction at the next update. It can be used safely within an update callback.
25+
* Phaser.Point#round rounds a point's coordinates.
26+
* Phaser.SoundManager#onTouchUnlock signal (#434)
27+
* Phaser.SoundManager#removeAll destroys all sounds and removes them from the Manager.
28+
* [Phaser.Utils.Debug](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html) methods:
29+
- Debug#loader displays [loader](https://photonstorm.github.io/phaser-ce/Phaser.Loader.html) progress.
30+
- Debug#scale displays game/canvas dimensions and [Scale Manager](https://photonstorm.github.io/phaser-ce/Phaser.ScaleManager.html) state.
31+
- Debug#sound displays [Sound Manager](https://photonstorm.github.io/phaser-ce/Phaser.SoundManager.html) state.
32+
* Phaser.Video#playWhenUnlocked
33+
* Phaser.Video#onTouchUnlock signal
34+
35+
### Updates
36+
37+
* Phaser now falls back to the Canvas renderer if AUTO is selected and WebGL context creation fails. [Phaser.Device#webGL](https://photonstorm.github.io/phaser-ce/Phaser.Device.html#webGL) is now a soft check and doesn't create a test WebGL context. This is slightly more accurate (#402) and slightly faster (#420). Phaser.Device#webGLError was removed.
38+
* [Gamepad](https://photonstorm.github.io/phaser-ce/Phaser.Gamepad.html) input is now enabled while the game is paused (#423).
39+
* Removed gain smoothing for WebAudio volume changes (#385).
40+
* Updated ionic example project (#381).
41+
* Removed these deprecated items (#403):
42+
- Phaser.ArrayUtils.rotate → [Phaser.ArrayUtils.rotateLeft](https://photonstorm.github.io/phaser-ce/Phaser.ArrayUtils.html#_rotateLeft)
43+
- Phaser.Device.isConsoleOpen
44+
- Phaser.Loader#useXDomainRequest → [xhrLoadWithXDR.js](resources/IE9/xhrLoadWithXDR.js)
45+
- Phaser.Loader#xhrLoadWithXDR → [xhrLoadWithXDR.js](resources/IE9/xhrLoadWithXDR.js)
46+
- Phaser.Particles#update
47+
- Phaser.Polygon#points (as a setter) → [Phaser.Polygon#setTo](https://photonstorm.github.io/phaser-ce/Phaser.Polygon.html#setTo)
48+
- Phaser.Touch#addTouchLockCallback → [Phaser.Input#addTouchLockCallback](https://photonstorm.github.io/phaser-ce/Phaser.Input.html#addTouchLockCallback)
49+
- Phaser.Touch#removeTouchLockCallback → [Phaser.Input#removeTouchLockCallback](https://photonstorm.github.io/phaser-ce/Phaser.Input.html#removeTouchLockCallback)
50+
- PIXI.BaseTexture#updateSourceImage → [Phaser.Component.LoadTexture#loadTexture](https://photonstorm.github.io/phaser-ce/Phaser.Component.LoadTexture.html#loadTexture)
51+
- RevoluteConstraint#motorIsEnabled → RevoluteConstraint#motorEnabled
52+
- Shape.RECTANGLE → Shape.BOX
53+
54+
### Bug Fixes
55+
56+
* Fixed a false positive in [TweenManager#isTweening](https://photonstorm.github.io/phaser-ce/Phaser.TweenManager.html#isTweening) (#414).
57+
* Changing a display object's [smoothed](https://photonstorm.github.io/phaser-ce/Phaser.Sprite.html#smoothed) property now marks the WebGL texture as dirty (#432, #433).
58+
* Fixed Phaser.Sound temporarily having an incorrect gain setting at creation time.
59+
* Fixed sprites not receiving [onInputOut](https://photonstorm.github.io/phaser-ce/Phaser.Events.html#onInputOver) when the pointer leaves the game canvas (#429).
60+
* Fixed some TypeScript definitions.
61+
62+
### Thanks
63+
64+
@ankush-badyal, @Dreaded-Gnu, @Mertank, @pavle-goloskokovic, @photonstorm, @qdrj, @samme, @squaresun
65+
766
## Version 2.9.4 - 20th December 2017
867

968
### New Features

README.md

+10-30
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](https://github.com/photonstorm/phaser/tree/master/v3) is in active development.
1010

11-
The [current Phaser CE release is 2.9.4](https://github.com/photonstorm/phaser-ce/releases/tag/v2.9.4).
11+
The [current Phaser CE release is 2.10.0](https://github.com/photonstorm/phaser-ce/releases/tag/v2.10.0).
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](http://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.9.4/build/phaser.js"></script>
131+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.10.0/build/phaser.js"></script>
132132
```
133133

134134
or the minified version:
135135

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

140-
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.9.4/build/custom/) are available too.
140+
[Custom builds](https://cdn.jsdelivr.net/npm/phaser-ce@2.10.0/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.10.0 - 18 January 2018
332332

333333
### New Features
334334

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

386386
### Thanks
387387

388-
@ankush-badyal, @Dreaded-Gnu, @Mertank, @pavle-goloskokovic, @photonstorm, @samme, @squaresun
389-
390-
## Version 2.9.4 - 20th December 2017
391-
392-
### New Features
393-
394-
* [TweenManager#isTweening](https://photonstorm.github.io/phaser-ce/Phaser.TweenManager.html#isTweening) has a `checkIsRunning` argument (#414).
395-
* You can now pass `game.stage` as the `parent` parameter in the `game.add` [methods](https://photonstorm.github.io/phaser-ce/Phaser.GameObjectFactory.html).
396-
* [Arcade#closest](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.html#closest), [Arcade#distanceBetween](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.html#distanceBetween), and [Arcade#farthest](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.html#farthest) have a `useCenter` argument (#418).
397-
398-
### Updates
399-
400-
* [Phaser.Device](https://photonstorm.github.io/phaser-ce/Phaser.Device.html) tests for WebGL stencil buffer support (#402).
401-
402-
### Bug Fixes
403-
404-
* Fixed a TypeError when a [Text](https://photonstorm.github.io/phaser-ce/Phaser.Text.html) object is created without a `style` argument (#415).
405-
406-
### Thanks
407-
408-
@bananatron, @mblais, @mepsoid, @naglfar, @photonstorm, @samme
388+
@ankush-badyal, @Dreaded-Gnu, @Mertank, @pavle-goloskokovic, @photonstorm, @qdrj, @samme, @squaresun
409389

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

@@ -429,10 +409,10 @@ All rights reserved.
429409

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

432-
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.9.4/phaser.js
433-
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.9.4/phaser.min.js
434-
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.9.4.zip
435-
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.9.4.tar.gz
412+
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.0/phaser.js
413+
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.10.0/phaser.min.js
414+
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.10.0.zip
415+
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.10.0.tar.gz
436416
[clone-http]: https://github.com/photonstorm/phaser.git
437417
[clone-ssh]: ssh://git@github.com:photonstorm/phaser.git
438418
[clone-svn]: https://github.com/photonstorm/phaser

build/custom/README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Custom Builds
2+
=============
3+
4+
Any **one** of these can be used in place of [phaser.js](../phaser.js):
5+
6+
- phaser-arcade-physics.js
7+
- phaser-no-physics.js
8+
- phaser-minimum.js
9+
10+
Any one of these **sets** can be used in place of [phaser.js](../phaser.js):
11+
12+
Browserify / CommonJS
13+
---------------------
14+
15+
1. p2.js
16+
1. pixi.js
17+
1. phaser-split.js
18+
19+
Creature
20+
--------
21+
22+
1. creature.js
23+
1. p2.js
24+
1. pixi.js
25+
1. phaser-creature.js
26+
27+
You can also [make your own custom build](http://phaser.io/tutorials/creating-custom-phaser-builds).

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

+1-18
Original file line numberDiff line numberDiff line change
@@ -5547,16 +5547,6 @@ RevoluteConstraint.prototype.disableMotor = function(){
55475547
this.motorEnabled = false;
55485548
};
55495549

5550-
/**
5551-
* Check if the motor is enabled.
5552-
* @method motorIsEnabled
5553-
* @deprecated use property motorEnabled instead.
5554-
* @return {Boolean}
5555-
*/
5556-
RevoluteConstraint.prototype.motorIsEnabled = function(){
5557-
return !!this.motorEnabled;
5558-
};
5559-
55605550
/**
55615551
* Set the speed of the rotational constraint motor
55625552
* @method setMotorSpeed
@@ -10910,13 +10900,6 @@ Shape.LINE = 16;
1091010900
*/
1091110901
Shape.BOX = 32;
1091210902

10913-
Object.defineProperty(Shape, 'RECTANGLE', {
10914-
get: function() {
10915-
console.warn('Shape.RECTANGLE is deprecated, use Shape.BOX instead.');
10916-
return Shape.BOX;
10917-
}
10918-
});
10919-
1092010903
/**
1092110904
* @static
1092210905
* @property {Number} CAPSULE
@@ -13635,4 +13618,4 @@ World.prototype.raycast = function(result, ray){
1363513618

1363613619
},{"../../package.json":6,"../collision/AABB":7,"../collision/Broadphase":8,"../collision/Narrowphase":10,"../collision/Ray":11,"../collision/SAPBroadphase":13,"../constraints/Constraint":14,"../constraints/DistanceConstraint":15,"../constraints/GearConstraint":16,"../constraints/LockConstraint":17,"../constraints/PrismaticConstraint":18,"../constraints/RevoluteConstraint":19,"../events/EventEmitter":26,"../material/ContactMaterial":27,"../material/Material":28,"../math/vec2":30,"../objects/Body":31,"../objects/LinearSpring":32,"../objects/RotationalSpring":33,"../shapes/Capsule":38,"../shapes/Circle":39,"../shapes/Convex":40,"../shapes/Line":42,"../shapes/Particle":43,"../shapes/Plane":44,"../shapes/Shape":45,"../solver/GSSolver":46,"../solver/Solver":47,"../utils/OverlapKeeper":52,"../utils/Utils":57,"./IslandManager":59}]},{},[36])
1363713620
(36)
13638-
});
13621+
});

build/custom/p2.map

+1-1
Large diffs are not rendered by default.

build/custom/p2.min.js

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

0 commit comments

Comments
 (0)