You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,67 @@
1
1
# Change Log
2
2
3
+
## Version 2.1.3 - "Ravinda" - 23rd October 2014
4
+
5
+
### New Features
6
+
7
+
* Updated to Pixi v2.0.0 (see change list below)
8
+
* Happily removed the IE11 WebGL lock as Pixi now fully supports it :)
9
+
* Time.prevTime is a new property that contains the raw value of the game timer from the previous update.
10
+
* Sound.fadeTo allows you to fade the Sound to the given volume over the duration specified (thanks @nickryall#1225)
11
+
* BitmapData.getFirstPixel will scan the BitmapData and return the color and location of the first non-transparent pixel encountered. You can specify one of 4 scan directions: top to bottom, bottom to top, left to right and right to left.
12
+
* BitmapData.getBounds will return a `Rectangle` object that encompasses the full extent of the non-transparent pixels in the BitmapData. This can be useful if you wish to trim away transparent pixels from the sides of a BitmapData down to size before saving.
13
+
* Rectangle.scale allows you to scale the width and height of a Rectangle.
14
+
* RenderTexture has a new optional parameter: `resolution`
15
+
16
+
### Updates
17
+
18
+
* TypeScript definitions fixes and updates (thanks @clark-stevenson)
19
+
* Changed the Animation constructor parameter `delay` to `frameRate` as it's a more accurate term of what it should be. Internally nothing changed.
20
+
* Circle.getBounds added.
21
+
* Ellipse.getBounds added.
22
+
* Device.canPlayAudio now supports `opus` files directly, as well as `opus` encoded audio stored in ogg containers (#1232)
23
+
* PIXI.AbstractFilter is now bundled by default to support the new `sprite.shader` feature in Pixi v2.
24
+
* Changed all typeof comparisons from == to === (thanks @bobbywilson0#1230)
25
+
* JSDoc fixes in the Rope class (thanks @Rovanion)
26
+
* Filter.update now caches the previous pointer position to avoid flooding the uniform. Also the mouse uniform is now a value between 0 and 1 depending on the position within the game view.
27
+
28
+
### Bug Fixes
29
+
30
+
* Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method. This stops the error where Safari would show lots of file load errors but then still load the files (thanks @neurofuzzy#1235)
31
+
* Fixed the Filter mouse uniform value population.
32
+
* Fixed an issue where audio files with query strings after them would fail the `canPlayAudio` checks (thanks Vithar)
33
+
* Input.hitTest now accurately detects hits on the extreme edges of a display object (thanks InsaneHero)
34
+
* Button.setSounds now works if given an AudioSprite as the sound source.
35
+
36
+
### Pixi v2 Specific New Features
37
+
38
+
* Sprites can now have a custom shader applied to them. Much better performance than filters.
39
+
* Renderers now have a resolution. Ideal for working with different pixel density.
40
+
* Big refactor of the webGLRenderer and WebGLSpriteBatch renderer.
41
+
* Refactor of CanvasRenderer.
42
+
* DisplayObject.updateTransform function rewritten with for better performance.
43
+
* New Events Class.
44
+
* New Constructor for all renderers (including autoDetect)
45
+
* Massive Refactor of Graphics (WebGL and Canvas)
46
+
* Graphics objects can now be interactive.
47
+
* Made removeChild no longer returns error.
48
+
* Lots of new functions added to the Matrix class.
49
+
* RenderTexture refactored. Now accepts Matrix in the render function.
50
+
* AsciiFilter, NoiseFilter and TiltShiftFilter.
51
+
* added getChildIndex and setChildIndex methods to DisplayObjectContainer.
52
+
* Bug Fixes.
53
+
54
+
### Pixi v2 Specific Bug Fixes
55
+
56
+
* iOS8 alpha bug fixed.
57
+
* set default padding to 0 for graphics objects.
58
+
* PIXI.Graphics initial width and height is 0.
59
+
* Fixed Graphics getBounds.
60
+
* fix cacheAsBitmap alpha issue for canvas.
61
+
* Fixed minY calculation in updateBounds.
62
+
* Fixed Bezier issue on Graphics.
63
+
* Added 0 width check to DisplayObjectContainer.
64
+
3
65
## Version 2.1.2 - "Whitebridge" - 9th October 2014
Copy file name to clipboardExpand all lines: README.md
+56-11Lines changed: 56 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
26
26
Phaser is a fast, free and fun open source game framework for making desktop and mobile browser HTML5 games. It uses [Pixi.js](https://github.com/GoodBoyDigital/pixi.js/) internally for fast 2D Canvas and WebGL rendering.
27
27
28
-
Version: 2.1.3 "Ravinda" - Released: in development
28
+
Version: 2.1.3 "Ravinda" - Released: 23rd October 2014
29
29
30
30
By Richard Davey, [Photon Storm](http://www.photonstorm.com)
31
31
@@ -45,6 +45,26 @@ By Richard Davey, [Photon Storm](http://www.photonstorm.com)
Over at Goodboy Digital they've been working away on Pixi v2 for some time now. As Phaser is built on-top of Pixi we've a vested interest in what is happening in Pixi land and it's implications for Phaser. And Pixi v2 is their latest, freshest release.
51
+
52
+
There's a detailed [blog post](http://www.goodboydigital.com/pixi-js-version-2-now-read/) explaining all about it, but the headliners include full High DPI canvas support, iOS8 WebGL fixes, improved rendering performance, significant updates to the Graphics class and sprite level shaders.
53
+
54
+
There have been a few API changes to accommodate all of this, but we've been able to blend all of those into Phaser so that the Phaser API hasn't had to change for you at all. Instead you get to reap the benefits :)
55
+
56
+
As well as Pixi v2 there are also more updates and fixes in this release and you can see the change log below for full details.
57
+
58
+
## Premium Phaser Plugins
59
+
60
+
We're pleased to announce that we have 3 new premium plugins gearing up for launch. They are:
61
+
62
+
Phaser Box2D - Adds complete Box2D support directly into Phaser, with lots of help methods, over 50 examples and 5 demo games.
63
+
64
+
Phaser Path Manager - Create complex motion paths for Sprites with a lovely visual editor and this new plugin. No longer rely on tweens for motion :) Instead draw a path, with full branch support, path orientation, segment speeds, path events and more.
65
+
66
+
Advanced Particle System - The particles included with Phaser are flexible and can create attractive effects. But Advanced Particles is a complete replacement offering professional level particle effects for your games. From multiple render targets, to bitmap caching to all kinds of events, emitters and properties.
67
+
48
68
Each plugin will come in a range of versions to suit all budgets and there are more on the way. Please visit the [launch page](http://phaserplugins.launchrock.com) to sign-up for notification as soon as they're ready.
49
69
50
70
Until then happy coding everyone! And we hope to see you on the forums.
@@ -71,19 +91,18 @@ Finally the list of [community authored Phaser Tutorials](http://www.lessmilk.co
71
91
<aname="change-log"></a>
72
92
## Change Log
73
93
74
-
Version 2.1.3 - "Ravinda" - in development
75
-
94
+
Version 2.1.3 - "Ravinda" - 23rd October 2014
76
95
77
96
### New Features
78
97
79
-
* Updated to Pixi v2.0.0
98
+
* Updated to Pixi v2.0.0 (see change list below)
80
99
* Happily removed the IE11 WebGL lock as Pixi now fully supports it :)
81
100
* Time.prevTime is a new property that contains the raw value of the game timer from the previous update.
82
101
* Sound.fadeTo allows you to fade the Sound to the given volume over the duration specified (thanks @nickryall#1225)
83
102
* BitmapData.getFirstPixel will scan the BitmapData and return the color and location of the first non-transparent pixel encountered. You can specify one of 4 scan directions: top to bottom, bottom to top, left to right and right to left.
84
103
* BitmapData.getBounds will return a `Rectangle` object that encompasses the full extent of the non-transparent pixels in the BitmapData. This can be useful if you wish to trim away transparent pixels from the sides of a BitmapData down to size before saving.
85
104
* Rectangle.scale allows you to scale the width and height of a Rectangle.
86
-
105
+
* RenderTexture has a new optional parameter: `resolution`
87
106
88
107
### Updates
89
108
@@ -92,21 +111,48 @@ Version 2.1.3 - "Ravinda" - in development
92
111
* Circle.getBounds added.
93
112
* Ellipse.getBounds added.
94
113
* Device.canPlayAudio now supports `opus` files directly, as well as `opus` encoded audio stored in ogg containers (#1232)
95
-
* Timer.timeCap has been changed from `1000` to `1 / 60 * 1000` to bring it in line with Time.timeCap.
96
-
* PIXI.AbstractFilter is now bundled by default, to support the new `sprite.shader` feature in Pixi 2.
114
+
* PIXI.AbstractFilter is now bundled by default to support the new `sprite.shader` feature in Pixi v2.
97
115
* Changed all typeof comparisons from == to === (thanks @bobbywilson0#1230)
98
116
* JSDoc fixes in the Rope class (thanks @Rovanion)
99
117
* Filter.update now caches the previous pointer position to avoid flooding the uniform. Also the mouse uniform is now a value between 0 and 1 depending on the position within the game view.
100
118
101
-
102
119
### Bug Fixes
103
120
104
-
* Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy#1235)
121
+
* Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method. This stops the error where Safari would show lots of file load errors but then still load the files (thanks @neurofuzzy#1235)
105
122
* Fixed the Filter mouse uniform value population.
106
123
* Fixed an issue where audio files with query strings after them would fail the `canPlayAudio` checks (thanks Vithar)
107
124
* Input.hitTest now accurately detects hits on the extreme edges of a display object (thanks InsaneHero)
108
125
* Button.setSounds now works if given an AudioSprite as the sound source.
109
126
127
+
### Pixi v2 Specific New Features
128
+
129
+
* Sprites can now have a custom shader applied to them. Much better performance than filters.
130
+
* Renderers now have a resolution. Ideal for working with different pixel density.
131
+
* Big refactor of the webGLRenderer and WebGLSpriteBatch renderer.
132
+
* Refactor of CanvasRenderer.
133
+
* DisplayObject.updateTransform function rewritten with for better performance.
134
+
* New Events Class.
135
+
* New Constructor for all renderers (including autoDetect)
136
+
* Massive Refactor of Graphics (WebGL and Canvas)
137
+
* Graphics objects can now be interactive.
138
+
* Made removeChild no longer returns error.
139
+
* Lots of new functions added to the Matrix class.
140
+
* RenderTexture refactored. Now accepts Matrix in the render function.
141
+
* AsciiFilter, NoiseFilter and TiltShiftFilter.
142
+
* added getChildIndex and setChildIndex methods to DisplayObjectContainer.
143
+
* Bug Fixes.
144
+
145
+
### Pixi v2 Specific Bug Fixes
146
+
147
+
* iOS8 alpha bug fixed.
148
+
* set default padding to 0 for graphics objects.
149
+
* PIXI.Graphics initial width and height is 0.
150
+
* Fixed Graphics getBounds.
151
+
* fix cacheAsBitmap alpha issue for canvas.
152
+
* Fixed minY calculation in updateBounds.
153
+
* Fixed Bezier issue on Graphics.
154
+
* Added 0 width check to DisplayObjectContainer.
155
+
110
156
For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md
111
157
112
158

@@ -297,11 +343,10 @@ Phaser has been used to create hundreds of games, which receive millions of play
297
343
298
344
Here are some of the features planned for future releases:
299
345
300
-
* Restore Math.interpolateAngles and Math.nearestAngleBetween
301
346
302
347
### Version 2.2 ("Tarabon")
303
348
304
-
*Look at HiDPI Canvas settings.
349
+
*Restore Math.interpolateAngles and Math.nearestAngleBetween
305
350
* Enhance the State Management, so you can perform non-destructive State swaps and persistence.
306
351
* Scene Manager - json scene parser.
307
352
* Adjust how Pointers and Interactive Objects work. Allow an IO to be flagged as "on click only", so it doesn't ever get processed during normal Pointer move events (unless being dragged)
Copy file name to clipboardExpand all lines: build/custom/p2.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16006,12 +16006,12 @@ Phaser.Physics.P2.Body = function (game, sprite, x, y, mass) {
16006
16006
this.data.parent = this;
16007
16007
16008
16008
/**
16009
-
* @property {Phaser.InversePointProxy} velocity - The velocity of the body. Set velocity.x to a negative value to move to the left, position to the right. velocity.y negative values move up, positive move down.
16009
+
* @property {Phaser.Physics.P2.InversePointProxy} velocity - The velocity of the body. Set velocity.x to a negative value to move to the left, position to the right. velocity.y negative values move up, positive move down.
16010
16010
*/
16011
16011
this.velocity = new Phaser.Physics.P2.InversePointProxy(this.world, this.data.velocity);
16012
16012
16013
16013
/**
16014
-
* @property {Phaser.InversePointProxy} force - The force applied to the body.
16014
+
* @property {Phaser.Physics.P2.InversePointProxy} force - The force applied to the body.
16015
16015
*/
16016
16016
this.force = new Phaser.Physics.P2.InversePointProxy(this.world, this.data.force);
0 commit comments