Skip to content

Commit 8f4858c

Browse files
committed
Fixed bug in DisplayObject where it was using PI_2 instead of PI2.
1 parent 03fe5ef commit 8f4858c

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

2.7.0/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Grab the source and join in the fun!
4040

4141
> In Development
4242
43-
This is the development branch, where we are building Phaser 3.0.0
43+
This is the development branch, where we are building Phaser 2.7.1
4444

4545
Check the [Change Log](#change-log) to see what we've done so far. Or switch to the master branch for the current stable release.
4646

@@ -99,23 +99,23 @@ Install via [bower](http://bower.io)
9999

100100
Install via [npm](https://www.npmjs.com)
101101

102-
`npm install phaser`
102+
`npm install phaser@2.7.1`
103103

104104
Using Browserify? Please [read this](#browserify).
105105

106106
### CDN
107107

108108
[jsDelivr](http://www.jsdelivr.com/#!phaser) is a "super-fast CDN for developers". Include the following in your html:
109109

110-
`<script src="//cdn.jsdelivr.net/phaser/3.0.0/phaser.js"></script>`
110+
`<script src="//cdn.jsdelivr.net/phaser/2.7.1/phaser.js"></script>`
111111

112112
or the minified version:
113113

114-
`<script src="//cdn.jsdelivr.net/phaser/3.0.0/phaser.min.js"></script>`
114+
`<script src="//cdn.jsdelivr.net/phaser/2.7.1/phaser.min.js"></script>`
115115

116116
[cdnjs.com](https://cdnjs.com/libraries/phaser) also offers a free CDN service. They have all versions of Phaser and even the custom builds:
117117

118-
`<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.0.0/phaser.js"></script>`
118+
`<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/2.7.1/phaser.js"></script>`
119119

120120
### Phaser Sandbox
121121

@@ -305,7 +305,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
305305
![Change Log](http://phaser.io/images/github/div-change-log.png "Change Log")
306306
<a name="change-log"></a>
307307

308-
## Version 3.0.0 - "Shadow Coast" - In Development
308+
## Version 2.7.1 - "Shadow Coast" - In Development
309309

310310
### New Features
311311

@@ -362,6 +362,7 @@ You can read all about the philosophy behind Lazer [here](http://phaser.io/news/
362362
* Text.width and Text.height now divide the result by the Text.resolution, to avoid incorrect dimensions on High DPI devices (thanks @mattahj #2146)
363363
* If you called Video.changeSource, and then immediately called Video.play after it, it would fire the `onComplete` event twice (thanks @jaraiza #2543)
364364
* The Video.playing property didn't check to see if the Video existed, and would throw the error `Uncaught TypeError: Cannot read property 'paused' of null` if you called it after destroying the video (thanks @Tetley #2740)
365+
* Fixed bug in DisplayObject where it was using `PI_2` instead of `PI2`.
365366

366367
### Pixi Updates
367368

@@ -417,10 +418,10 @@ All rights reserved.
417418

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

420-
[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.0.0/phaser.js
421-
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.0.0/phaser.min.js
422-
[get-zip]: https://github.com/photonstorm/phaser/archive/v3.0.0.zip
423-
[get-tgz]: https://github.com/photonstorm/phaser/archive/v3.0.0.tar.gz
421+
[get-js]: https://github.com/photonstorm/phaser/releases/download/v2.7.1/phaser.js
422+
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v2.7.1/phaser.min.js
423+
[get-zip]: https://github.com/photonstorm/phaser/archive/v2.7.1.zip
424+
[get-tgz]: https://github.com/photonstorm/phaser/archive/v2.7.1.tar.gz
424425
[clone-http]: https://github.com/photonstorm/phaser.git
425426
[clone-ssh]: git@github.com:photonstorm/phaser.git
426427
[clone-svn]: https://github.com/photonstorm/phaser

2.7.0/src/pixi/display/DisplayObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ PIXI.DisplayObject.prototype = {
331331
var a, b, c, d, tx, ty;
332332

333333
// so if rotation is between 0 then we can simplify the multiplication process..
334-
if (this.rotation % Phaser.Math.PI_2)
334+
if (this.rotation % Phaser.Math.PI2)
335335
{
336336
// check to see if the rotation is the same as the previous render. This means we only need to use sin and cos when rotation actually changes
337337
if (this.rotation !== this.rotationCache)

0 commit comments

Comments
 (0)