Skip to content

Commit 5932792

Browse files
authored
Merge pull request #242 from photonstorm/release-2.8.0
Phaser CE Version 2.8.0
2 parents 605fefe + 8afdc74 commit 5932792

File tree

425 files changed

+11026
-2950
lines changed

Some content is hidden

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

425 files changed

+11026
-2950
lines changed

CHANGELOG.md

+35-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,40 @@
1-
# Change Log
2-
3-
## Unreleased
4-
1+
# Change Log
2+
3+
## Unreleased
4+
55
See [README: Change Log](README.md#change-log).
66

7+
## Version 2.8.0 - 30th May 2017
8+
9+
We've bumped the minor version (2.8) for changes in how circular Arcade Physics bodies behave with scaled sprites. We consider this a bug fix (#235), but since the prior behavior wasn't documented and existing code might be relying on it, we wanted to give you a heads-up.
10+
11+
### New Features
12+
13+
* You can emit particles in a radial pattern with [Emitter#setAngle](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#setAngle).
14+
* [Emitter#output](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#output), [Emitter#lifespanOutput](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#lifespanOutput), and [Emitter#remainder](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#remainder) describe particle flow rate.
15+
* You can toggle drag (resistance) on or off with [Arcade.Body#allowDrag](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#allowDrag). You might apply drag only when a character is touching the ground, for example.
16+
* [Group#checkAny](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#checkAny) tests if at least one child matches a given property value.
17+
* [Group#killAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#killAll) kills all existing children. (Also useful for shutting off particle emitters.)
18+
* [Group#reviveAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#reviveAll) revives all non-existing children.
19+
* [Group#resetAll](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#resetAll) calls resetChild on all children (changing position, texture, and frame, if specified).
20+
* [Group#scatter](https://photonstorm.github.io/phaser-ce/Phaser.Group.html#scatter) places each child at a random position within a Rectangle or the World bounds.
21+
* [Point.isPoint](https://photonstorm.github.io/phaser-ce/Phaser.Point.html#isPoint) identifies objects that can be safely used in Point operations.
22+
23+
### Updates
24+
25+
* [Arcade.Body#radius](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.Body.html#radius) represents a length relative to the sprite's texture dimensions. The effective radius of the body scales automatically when the sprite scale changes, as with rectangular bodies, and the body is sized correctly when the sprite's scale is different from (1, 1) (#235).
26+
* [Create#grid](https://photonstorm.github.io/phaser-ce/Phaser.Create.html#grid) and [Create#texture](https://photonstorm.github.io/phaser-ce/Phaser.Create.html#texture) accept callbacks (#241, #136) and can return a BitmapData object when passed `generateTexture=false`.
27+
28+
### Bug Fixes
29+
30+
* Fixed incorrect Phaser.Text dimensions when assigning a numeric string to [strokeThickness](https://photonstorm.github.io/phaser-ce/Phaser.Text.html#strokeThickness) (#239). (You should still use a number instead, though.)
31+
* Fixed Sounds ignoring changes to global volume when using audio tags.
32+
* Fixed looping timers not getting removed completely when destroyed.
33+
34+
### Thanks
35+
36+
@ColaColin, @GameDevFox, @goldfire, @netgfx, @photonstorm, @rblopes, @samme, @shunsei, @Xesenix
37+
738
## Version 2.7.10 - 19th May 2017
839

940
### New Features

README.md

+8-36
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.10](https://github.com/photonstorm/phaser-ce/releases/tag/v2.7.10).
11+
The [current Phaser CE release is 2.8.0](https://github.com/photonstorm/phaser-ce/releases/tag/v2.8.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)
@@ -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/npm/phaser-ce@2.7.10/build/phaser.js"></script>
125+
<script src="//cdn.jsdelivr.net/npm/phaser-ce@2.8.0/build/phaser.js"></script>
126126

127127
or the minified version:
128128

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

131131
### Web Templates
132132

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

259259
# Change Log
260260

261-
## Version 2.8.0 - Unreleased
261+
## Version 2.8.0 - 30th May 2017
262262

263263
We've bumped the minor version (2.8) for changes in how circular Arcade Physics bodies behave with scaled sprites. We consider this a bug fix (#235), but since the prior behavior wasn't documented and existing code might be relying on it, we wanted to give you a heads-up.
264264

@@ -289,34 +289,6 @@ We've bumped the minor version (2.8) for changes in how circular Arcade Physics
289289

290290
@ColaColin, @GameDevFox, @goldfire, @netgfx, @photonstorm, @rblopes, @samme, @shunsei, @Xesenix
291291

292-
## Version 2.7.10 - 19th May 2017
293-
294-
### New Features
295-
296-
* Added [Creature alpha](https://photonstorm.github.io/phaser-ce/Phaser.Creature.html#alpha) (`creature.alpha = 0.5` for 50% opacity)
297-
* Added [Creature tinting](https://photonstorm.github.io/phaser-ce/Phaser.Creature.html#tint) (`creature.tint = 0xFF0000` for red tint)
298-
* 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).
299-
300-
### Updates
301-
302-
* [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.
303-
* Removed `/docs` and `/resources` from Phaser CE's Bower and [NPM](https://www.npmjs.com/package/phaser-ce) packages, which are now much smaller.
304-
* Removed some duplicate files from `/build`.
305-
306-
### Bug Fixes
307-
308-
* Fixed a TypeError in pointer-over checks when Phaser.Creature is missing
309-
* 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).
310-
* [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).
311-
* 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).
312-
* 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).
313-
* [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.
314-
* Fixed [Emitter#emitParticle](https://photonstorm.github.io/phaser-ce/Phaser.Particles.Arcade.Emitter.html#emitParticle) failing to apply certain particle scale values.
315-
316-
### Thanks
317-
318-
@andrewjb123, @EmilSV, @entozoon, @greut, @jbpuryear, @mikkoh85, @MrBaummann, @photonstorm, @rblopes, @rmkubik, @samme
319-
320292
For changes in previous releases please see the extensive [Version History](https://github.com/photonstorm/phaser-ce/blob/master/CHANGELOG.md).
321293

322294
<a name="contributing"></a>
@@ -349,10 +321,10 @@ All rights reserved.
349321

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

352-
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.7.9/phaser.js
353-
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.7.9/phaser.min.js
354-
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.7.9.zip
355-
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.7.9.tar.gz
324+
[get-js]: https://github.com/photonstorm/phaser-ce/releases/download/v2.8.0/phaser.js
325+
[get-minjs]: https://github.com/photonstorm/phaser-ce/releases/download/v2.8.0/phaser.min.js
326+
[get-zip]: https://github.com/photonstorm/phaser-ce/archive/v2.8.0.zip
327+
[get-tgz]: https://github.com/photonstorm/phaser-ce/archive/v2.8.0.tar.gz
356328
[clone-http]: https://github.com/photonstorm/phaser.git
357329
[clone-ssh]: ssh://git@github.com:photonstorm/phaser.git
358330
[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)