Skip to content

Commit b2208f3

Browse files
authored
Merge pull request #228 from photonstorm/release-v2.7.10
Phaser CE Version 2.7.10
2 parents 045417d + e495196 commit b2208f3

File tree

429 files changed

+8897
-1535
lines changed

Some content is hidden

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

429 files changed

+8897
-1535
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@
44

55
See [README: Change Log](README.md#change-log).
66

7+
## Version 2.7.10 - 19th May 2017
8+
9+
### New Features
10+
11+
* Added [Creature alpha](https://photonstorm.github.io/phaser-ce/Phaser.Creature.html#alpha) (`creature.alpha = 0.5` for 50% opacity)
12+
* Added [Creature tinting](https://photonstorm.github.io/phaser-ce/Phaser.Creature.html#tint) (`creature.tint = 0xFF0000` for red tint)
13+
* You can now set [Phaser.Utils.Debug#lineWidth](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#lineWidth), the width of the stroke of shapes drawn by [Debug#body](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#body) and [Debug#geom](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#geom).
14+
15+
### Updates
16+
17+
* [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty) now returns false if the `child` argument is not a child of the Group. Use [Phaser.Utils.getProperty](https://photonstorm.github.io/phaser-ce/Phaser.Utils.html#.getProperty) instead to read a property value on any object.
18+
* Removed `/docs` and `/resources` from Phaser CE's Bower and [NPM](https://www.npmjs.com/package/phaser-ce) packages, which are now much smaller.
19+
* Removed some duplicate files from `/build`.
20+
21+
### Bug Fixes
22+
23+
* Fixed a TypeError in pointer-over checks when Phaser.Creature is missing
24+
* Fixed [Group#checkAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAll) and [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty) returning a false negative when `force` was used (#219).
25+
* [Utils.getProperty](https://photonstorm.github.io/phaser-ce/Phaser.Utils.html#.getProperty) now returns undefined for missing properties. It had claimed to return null, but could return either null or undefined depending on chain length (#218).
26+
* Fixed [Group#checkAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAll), [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty), and [Utils.getProperty](https://photonstorm.github.io/phaser-ce/Phaser.Utils.html#.getProperty) failing to retrieve nested properties (#220).
27+
* Corrected [Group#checkAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAll) and [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty) argument types (#216).
28+
* [Group#getAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#getAll) now correctly returns all children when the `property` and `value` arguments are omitted.
29+
* Fixed [Emitter#emitParticle](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#emitParticle) failing to apply certain particle scale values.
30+
31+
### Thanks
32+
33+
@andrewjb123, @EmilSV, @entozoon, @greut, @jbpuryear, @mikkoh85, @MrBaummann, @photonstorm, @rblopes, @rmkubik, @samme
34+
735
## Version 2.7.9 - 9th May 2017
836

937
### Updates

README.md

+19-23
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 originally built and maintained by the company [Photon Storm](http://www.photonstorm.com), but was turned over to the community 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.7.9](https://github.com/photonstorm/phaser-ce/releases/tag/v2.7.9).
11+
The [current Phaser CE release is 2.7.10](https://github.com/photonstorm/phaser-ce/releases/tag/v2.7.10).
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)
@@ -122,11 +122,11 @@ Using Browserify? Please [read this](#browserify).
122122

123123
[Phaser CE is on jsDelivr](http://www.jsdelivr.com/projects/phaser-ce), a "super-fast CDN for developers". Include the following in your html:
124124

125-
<script src="//cdn.jsdelivr.net/phaser-ce/2.7.7/phaser.js"></script>
125+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.7.10/build/phaser.js"></script>
126126

127127
or the minified version:
128128

129-
<script src="//cdn.jsdelivr.net/phaser-ce/2.7.7/phaser.min.js"></script>
129+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.7.10"></script>
130130

131131
### Web Templates
132132

@@ -258,37 +258,33 @@ If you code with [TypeScript](http://www.typescriptlang.org/) there are comprehe
258258

259259
# Change Log
260260

261-
## Version 2.7.10 - Unreleased
261+
## Version 2.7.10 - 19th May 2017
262262

263263
### New Features
264264

265-
* You can now set Phaser.Utils.Debug#lineWidth, the width of the stroke on drawn lines and unfilled shapes.
265+
* Added [Creature alpha](https://photonstorm.github.io/phaser-ce/Phaser.Creature.html#alpha) (`creature.alpha = 0.5` for 50% opacity)
266+
* Added [Creature tinting](https://photonstorm.github.io/phaser-ce/Phaser.Creature.html#tint) (`creature.tint = 0xFF0000` for red tint)
267+
* You can now set [Phaser.Utils.Debug#lineWidth](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#lineWidth), the width of the stroke of shapes drawn by [Debug#body](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#body) and [Debug#geom](https://photonstorm.github.io/phaser-ce/Phaser.Utils.Debug.html#geom).
266268

267269
### Updates
268270

269-
* Group#checkProperty now returns false if the `child` argument is not a child of the Group. Use Phaser.Utils.checkProperty instead to check a property value on any object.
270-
* `/docs` and `/resources` were removed from Phaser CE's Bower and NPM packages, which are now much smaller.
271-
* added creature tinting (creature.tint = 0xFF0000 for red tint)
272-
* added creature alpha (creature.alpha = 0.5 for 50% opacity)
271+
* [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty) now returns false if the `child` argument is not a child of the Group. Use [Phaser.Utils.getProperty](https://photonstorm.github.io/phaser-ce/Phaser.Utils.html#.getProperty) instead to read a property value on any object.
272+
* Removed `/docs` and `/resources` from Phaser CE's Bower and [NPM](https://www.npmjs.com/package/phaser-ce) packages, which are now much smaller.
273+
* Removed some duplicate files from `/build`.
273274

274275
### Bug Fixes
275276

276-
* Fixed Group#checkAll and Group#checkProperty returning a false negative when `force` was used (#219).
277-
* Utils.getProperty now returns undefined for missing properties. It had claimed to return null, but could return either null or undefined depending on chain length (#218).
278-
* Fixed Group#checkAll, Group#checkProperty, and Utils.getProperty failing to retrieve nested properties (#220).
279-
* Corrected Group#checkAll and Group#checkProperty argument types (#216).
280-
* Group#getAll was not returning all children objects when property was not specified.
281-
* Emitter#emitParticle apply scale values even when they are identical.
277+
* Fixed a TypeError in pointer-over checks when Phaser.Creature is missing
278+
* Fixed [Group#checkAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAll) and [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty) returning a false negative when `force` was used (#219).
279+
* [Utils.getProperty](https://photonstorm.github.io/phaser-ce/Phaser.Utils.html#.getProperty) now returns undefined for missing properties. It had claimed to return null, but could return either null or undefined depending on chain length (#218).
280+
* Fixed [Group#checkAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAll), [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty), and [Utils.getProperty](https://photonstorm.github.io/phaser-ce/Phaser.Utils.html#.getProperty) failing to retrieve nested properties (#220).
281+
* Corrected [Group#checkAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAll) and [Group#checkProperty](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkProperty) argument types (#216).
282+
* [Group#getAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#getAll) now correctly returns all children when the `property` and `value` arguments are omitted.
283+
* Fixed [Emitter#emitParticle](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#emitParticle) failing to apply certain particle scale values.
282284

283-
## Version 2.7.9 - 9th May 2017
285+
### Thanks
284286

285-
### Updates
286-
287-
* Emitter#gravity can now be set as a number (as in Phaser versions prior to 2.7.2) or a Point (#203). Reading the value will always give you a Point.
288-
289-
### Bug Fixes
290-
291-
* Fixed a crash when a Text object's alignment was not set (#208).
287+
@andrewjb123, @EmilSV, @entozoon, @greut, @jbpuryear, @mikkoh85, @MrBaummann, @photonstorm, @rblopes, @rmkubik, @samme
292288

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

build/custom/creature.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -6473,7 +6473,7 @@ CreatureModuleUtils.FillUVSwapCache = function(json_obj, key, start_time, end_ti
64736473
};
64746474

64756475
// Creature
6476-
function Creature(load_data)
6476+
function Creature(load_data, loadAnchors)
64776477
{
64786478
this.total_num_pts = 0;
64796479
this.total_num_indices = 0;
@@ -6489,7 +6489,7 @@ function Creature(load_data)
64896489
this.anchor_point_map = {};
64906490
this.anchor_points_active = false;
64916491

6492-
this.LoadFromData(load_data);
6492+
this.LoadFromData(load_data, loadAnchors);
64936493
};
64946494

64956495
// experimental - must enable - disabled by default
@@ -6661,7 +6661,7 @@ Creature.prototype.ComputeBoundaryMinMax = function()
66616661

66626662

66636663
// Load data
6664-
Creature.prototype.LoadFromData = function(load_data)
6664+
Creature.prototype.LoadFromData = function(load_data, loadAnchors)
66656665
{
66666666
// Load points and topology
66676667
var json_mesh = load_data["mesh"];
@@ -6717,11 +6717,13 @@ Creature.prototype.LoadFromData = function(load_data)
67176717

67186718
this.render_composition.resetToWorldRestPts();
67196719

6720-
// Load Anchor Points
6721-
if("anchor_points_items" in load_data)
6722-
{
6723-
var anchor_point_base = load_data["anchor_points_items"];
6724-
this.anchor_point_map = this.FillAnchorPointMap(anchor_point_base);
6720+
if (loadAnchors) {
6721+
// Load Anchor Points
6722+
if("anchor_points_items" in load_data)
6723+
{
6724+
var anchor_point_base = load_data["anchor_points_items"];
6725+
this.anchor_point_map = this.FillAnchorPointMap(anchor_point_base);
6726+
}
67256727
}
67266728
};
67276729

build/custom/creature.map

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

build/custom/creature.min.js

+2-2
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)