Skip to content

Commit 9f28d06

Browse files
committed
Phaser 2.4.8 release.
1 parent 0bf2f98 commit 9f28d06

409 files changed

Lines changed: 87752 additions & 5875 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Change Log
22

3+
## Version 2.4.8 - "Watch Hill" - 19th May 2016
4+
5+
### New Features
6+
7+
* BitmapData.copy, and by extension any method that uses it, including BitmapData.draw, drawGroup and drawFull, now all support drawing RenderTexture objects. These can either be passed directly, or be the textures of Sprites, such as from a call to generateTexture.
8+
* Arcade Physics has had a new `world` argument added to the following functions: `distanceBetween`, `distanceToXY`, `distanceToPointer`, `angleBetween`, `angleToXY` and `angleToPointer`. The argument (which is false by default), when enabled will calculate the angles or distances based on the Game Objects `world` property, instead of its `x` and `y` properties. This allows it to work for objects that are placed in offset Groups, or are children of other display objects (thanks @Skeptron for the thread #2463)
9+
* Arcade Physics Body has a new property `worldBounce`. This controls the elasticity of the Body specifically when colliding with the World bounds. By default this property is `null`, in which case Body.bounce is used instead. Set this property to a Phaser.Point object in order to enable a World bounds specific bounce value (thanks @VitaZheltyakov #2465)
10+
11+
### Updates
12+
13+
* TypeScript definitions fixes and updates (thanks @osev7 @staff0rd @galen-manuel)
14+
* Docs typo fixes (thanks @dedoubleyou1 @mortonfox @zeterain)
15+
* You can now access the intensity of the Camera shake effect via the getter / setter `Camera.shakeIntensity`. Useful if you wish to tween the intensity while running. (thanks @drhayes #2443)
16+
* The Arcade Physics overlap method would return false if two bodies were overlapping but neither had any velocity (i.e. they were embedded into each other)
17+
* PIXI.defaultRenderer is now set to `null` in Game.destroy, allowing it to be reset if a new Game instance is created on the same page (thanks @xtforgame ##2474)
18+
* BitmapData.drawGroupProxy is now capable of iterating through Sprites that have children, and also now uses the world positions for drawing instead. This change updates the functionality of BitmapData.drawGroup.
19+
* Text.setStyle has a new argument `update` which will optionally automatically call `updateText` after setting the new style (thanks @staff0rd #2478)
20+
21+
### Bug Fixes
22+
23+
* Fixed an issue in the Arcade Physics overlap method where it would only detect overlaps up to the max bias threshold and no further (thanks @rgk #2441)
24+
* InputHandler.checkPointerDown and checkPointerOver will now test the worldTransform scale property of a Sprite. If zero it will fast return, where-as before it would incorrectly report an up event (thanks @jaapaurelio #2466)
25+
* Fixed a bug in Arcade Physics Body.preUpdate which would incorrectly apply the position of an offset Body (one which has had Body.setSize used on it) when combined with a Sprite with a non-zero anchor (thanks @SBCGames #2470)
26+
* If you set Game.renderType to `Phaser.HEADLESS` it will no longer render the output to the canvas. The canvas is still created (although not added to the DOM), as it's required internally, but no rendering now takes place on it (thanks @ForgeableSum #2464)
27+
* Sounds played using the Audio tag, that were paused and then resumed again (either directly in code, or via a game pause event) would not resume from the point at which they paused (thanks @rroylance #2473)
28+
* Sounds played using the Audio tag, set to loop, would get caught in an endless pause-play loop cycle (thanks @rroylance #2473)
29+
30+
### Pixi Updates
31+
32+
Please note that Phaser uses a custom build of Pixi and always has done. The following changes have been made to our custom build, not to Pixi in general.
33+
34+
* Sprites that had a tint on them, that then had their frame changed via either `Sprite.frame` or `Sprite.frameName` wouldn't re-tint the new frame, and would become stuck on the old frame in Canvas mode (thaks @spayton #2453)
35+
336
## Version 2.4.7 - "Hinderstap" - 22nd April 2016
437

538
### New Features

Gruntfile.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,20 @@ module.exports = function (grunt) {
404404

405405
});
406406

407+
grunt.registerTask('release', 'Compile all Phaser versions to the build folder and update docs and defs', function() {
408+
409+
grunt.task.run('clean:release');
410+
grunt.task.run('full');
411+
grunt.task.run('arcadephysics');
412+
grunt.task.run('nophysics');
413+
grunt.task.run('minimum');
414+
grunt.task.run('split');
415+
grunt.task.run('creature');
416+
grunt.task.run('docs');
417+
grunt.task.run('tsdocs');
418+
419+
});
420+
407421
grunt.registerTask('build', 'Compile all Phaser versions just to the dist folder', function() {
408422

409423
grunt.option('exclude', 'ninja,creature');

README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Thousands of developers worldwide use it. From indies and multi-national digital
1313
* **Visit:** The [Phaser website](http://phaser.io) and follow on [Twitter](https://twitter.com/photonstorm) (#phaserjs)
1414
* **Learn:** [API Documentation](http://phaser.io/docs), [Support Forum][forum] and [StackOverflow](http://stackoverflow.com/questions/tagged/phaser-framework)
1515
* **Code:** 700+ [Source Examples](http://phaser.io/examples) (also available in this [git repo][examples])
16-
* **Read:** Subscribe to the weekly [Phaser World Newsletter](http://phaser.io/community/newsletter)
17-
* **Chat:** [#phaserio IRC channel](http://www.html5gamedevs.com/topic/4470-official-phaserio-irc-channel-phaserio-on-freenode/) or our [Slack Channel](http://phaser.io/news/2015/08/phaser-slack-channel)
16+
* **Read:** Subscribe to the weekly [Phaser World Newsletter](#phaserworld)
17+
* **Chat:** Join our [Slack Channel](http://phaser.io/news/2015/08/phaser-slack-channel), or [#phaserio IRC channel](http://www.html5gamedevs.com/topic/4470-official-phaserio-irc-channel-phaserio-on-freenode/)
1818
* **Extend:** With [Phaser Plugins](http://phaser.io/shop/plugins)
1919
* **Be awesome:** Support the future of Phaser on [Patreon](https://www.patreon.com/photonstorm) or by buying our [books](http://phaser.io/shop/books)
2020

@@ -32,6 +32,7 @@ Thousands of developers worldwide use it. From indies and multi-national digital
3232
- [Requirements](#requirements)
3333
- [Road Map](#road-map)
3434
- [Change Log](#change-log)
35+
- [Lazer](#lazer)
3536
- [Contributing](#contributing)
3637

3738
![div](http://www.phaser.io/images/github/div.png)
@@ -41,11 +42,17 @@ Thousands of developers worldwide use it. From indies and multi-national digital
4142

4243
<div align="center"><img src="http://phaser.io/images/github/news.jpg"></div>
4344

44-
> 22nd April 2016
45+
> 19th May 2016
4546
46-
Phaser 2.4.8 is now in development. This file will be updated as work progresses.
47+
The release of Phaser 2.4.8 continues our commitment to rapid turn-around of bug fixes and enhancements. Scan through the [Change Log](#change-log) for comprehensive details about what is new and updated in this version.
4748

48-
As always, keep you eyes on the Phaser web site, our weekly newsletter, or follow me on [Twitter](https://twitter.com/photonstorm) for the latest updates.
49+
As always, my thanks to all of you who contributed towards this release. Either by opening an issue on GitHub, providing a fix, or just giving encouragement to the dev team.
50+
51+
We are now splitting our time between development of [Lazer](#lazer), and Phaser 2.5. We decided, after much discussion with the community, that we owed it to Phaser to go out on a high, so 2.5 will be the version in which we do just that. After this Phaser will enter the LTS (long-term support) stage of its life.
52+
53+
This is when we impose a feature freeze, locking the API down and responding only to bugs. This is a necessary step to allow us to focus on Lazer while still ensuring Phaser is given the support it deserves. Don't worry, we aren't going to abandon you! We've got your backs.
54+
55+
As always, keep you eyes on the Phaser web site and read our weekly [newsletter](#phaserworld). You can also follow me on [Twitter](https://twitter.com/photonstorm) or chat to me in the Phaser [Slack](http://phaser.io/news/2015/08/phaser-slack-channel) channel.
4956

5057
We'd be extremely grateful if you could get involved with our [Phaser Patreon campaign](https://www.patreon.com/photonstorm). The uptake so far has been fantastic. Thank you to everyone who now supports Phaser development and shares our belief in the future of HTML5 gaming, and Phasers role in that.
5158

@@ -162,7 +169,7 @@ Browse the [Phaser Examples](http://phaser.io/examples) or clone the [examples r
162169

163170
<div align="center"><img src="http://phaser.io/content/interphase/1/images/editorial/pages.jpg"></div>
164171

165-
[Interphase](http://phaser.io/interphase) is a new book for Phaser developers of all skill levels.
172+
[Interphase](http://phaser.io/interphase) is a programming book for Phaser developers of all skill levels.
166173

167174
With 400 pages of content you'll find detailed articles, game development "Making Of" guides and tutorials. All were written using the latest version of Phaser, so you won't be learning any out-dated tricks here.
168175

@@ -317,8 +324,8 @@ If you code with [TypeScript](http://www.typescriptlang.org/) there are comprehe
317324

318325
The majority of Phaser development is now taking place on the [Lazer](https://github.com/photonstorm/lazer) (Phaser 3) project. The Phaser 2 branch will still be supported and issues fixed, but roadmap features have been migrated over.
319326

320-
<a name="phaser3"></a>
321-
## Lazer (Phaser 3)
327+
<a name="lazer"></a>
328+
## Lazer
322329

323330
[Lazer](https://github.com/photonstorm/lazer) is the next generation of the Phaser game framework, and was previously called Phaser 3. Using a completely ES6 base it is renderer agnostic, allowing for DOM, SVG, Canvas and WebGL rendering, across desktop and mobile web browsers.
324331

@@ -331,7 +338,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
331338
<a name="change-log"></a>
332339
## Change Log
333340

334-
## Version 2.4.8 - "Watch Hill" - in dev
341+
## Version 2.4.8 - "Watch Hill" - 19th May 2016
335342

336343
### New Features
337344

@@ -342,7 +349,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
342349
### Updates
343350

344351
* TypeScript definitions fixes and updates (thanks @osev7 @staff0rd @galen-manuel)
345-
* Docs typo fixes (thanks @dedoubleyou1 @mortonfox)
352+
* Docs typo fixes (thanks @dedoubleyou1 @mortonfox @zeterain)
346353
* You can now access the intensity of the Camera shake effect via the getter / setter `Camera.shakeIntensity`. Useful if you wish to tween the intensity while running. (thanks @drhayes #2443)
347354
* The Arcade Physics overlap method would return false if two bodies were overlapping but neither had any velocity (i.e. they were embedded into each other)
348355
* PIXI.defaultRenderer is now set to `null` in Game.destroy, allowing it to be reset if a new Game instance is created on the same page (thanks @xtforgame ##2474)
@@ -357,15 +364,12 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
357364
* If you set Game.renderType to `Phaser.HEADLESS` it will no longer render the output to the canvas. The canvas is still created (although not added to the DOM), as it's required internally, but no rendering now takes place on it (thanks @ForgeableSum #2464)
358365
* Sounds played using the Audio tag, that were paused and then resumed again (either directly in code, or via a game pause event) would not resume from the point at which they paused (thanks @rroylance #2473)
359366
* Sounds played using the Audio tag, set to loop, would get caught in an endless pause-play loop cycle (thanks @rroylance #2473)
360-
* Sprites that had a tint on them, that then had their frame changed via either `Sprite.frame` or `Sprite.frameName` wouldn't re-tint the new frame, and would become stuck on the old frame in Canvas mode (thaks @spayton #2453)
361367

362368
### Pixi Updates
363369

364370
Please note that Phaser uses a custom build of Pixi and always has done. The following changes have been made to our custom build, not to Pixi in general.
365371

366-
*
367-
*
368-
*
372+
* Sprites that had a tint on them, that then had their frame changed via either `Sprite.frame` or `Sprite.frameName` wouldn't re-tint the new frame, and would become stuck on the old frame in Canvas mode (thaks @spayton #2453)
369373

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

0 commit comments

Comments
 (0)