Skip to content

Commit 7f7a355

Browse files
committed
Preparing for Phaser 3.0.0 dev.
1 parent dd39f9a commit 7f7a355

4 files changed

Lines changed: 30 additions & 66 deletions

File tree

README.md

Lines changed: 25 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ Grab the source and join in the fun!
3838

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

41-
> 26th August 2016
41+
> In Development
4242
43-
Summer is nearly over, the nights are drawing in, and the Phaser releases continue. After enjoying a short break in August, we're back with Phaser 2.6.2. This is mostly a maintenance release, with a lot of attention paid to clearing bugs, and improving features. There's also some significant updates to our fork of Pixi, setting the scene for the next iteration of Phaser.
43+
This is the development branch, where we are building Phaser 3.0.0
4444

45-
Check the [Change Log](#change-log) for the complete list of what's new and updated.
46-
47-
With 2.6.2 out, we'll now turn our attention to merging in all of the renderer updates we've built over the past few months. They are going to form the basis of the Phaser 3.0 release. The bump in version number due to the dramatic internal changes we're making. Follow our progress in the Phaser World newsletter for details. It's going to be an exciting September for sure :)
45+
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.
4846

4947
As always, keep you eyes on the Phaser web site, and subscribe to our weekly [newsletter](#newsletter). You can also follow me on [Twitter](https://twitter.com/photonstorm) or chat to me in the Phaser [Slack](http://phaser.io/community/slack) channel.
5048

@@ -109,15 +107,15 @@ Using Browserify? Please [read this](#browserify).
109107

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

112-
`<script src="//cdn.jsdelivr.net/phaser/2.6.2/phaser.js"></script>`
110+
`<script src="//cdn.jsdelivr.net/phaser/3.0.0/phaser.js"></script>`
113111

114112
or the minified version:
115113

116-
`<script src="//cdn.jsdelivr.net/phaser/2.6.2/phaser.min.js"></script>`
114+
`<script src="//cdn.jsdelivr.net/phaser/3.0.0/phaser.min.js"></script>`
117115

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

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

122120
### Phaser Sandbox
123121

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

310-
## Version 2.6.2 - "Kore Springs" - 26th August 2016
308+
## Version 3.0.0 - "Shadow Coast" - In Development
311309

312310
### New Features
313311

314-
* Group.getRandomExists will return a random child from the Group that has exists set to true.
315-
* Group.getAll will return all children in the Group, or a section of the Group, with the optional ability to test if the child has a property matching the given value or not.
316-
* Group.iterate has a new `returnType`: `RETURN_ALL`. This allows you to return all children that pass the iteration test in an array.
317-
* The property `checkCollision.none` in the ArcadePhysics.Body class was available, but never used internally. It is now used and checked by the `separate` method. By setting `checkCollision.none = true` you can disable all collision and overlap checks on a Body, but still retain its motion updates (thanks @samme #2661)
318-
* Math.rotateToAngle takes two angles (in radians), and an interpolation value, and returns a new angle, based on the shortest rotational distance between the two.
319-
* Math.getShortestAngle will return the shortest angle between the two given angles. Angles are in the range -180 to 180, which is what `Sprite.angle` uses. So you can happily feed this method two sprite angles, and get the shortest angle back between them (#2494)
312+
*
313+
*
314+
*
320315

321316
### Updates
322317

323-
* TypeScript definitions fixes and updates (thanks @calvindavis @AlvaroBarua)
324-
* Docs typo fixes (thanks @rroylance @Owumaro @boniatillo-com @samme @kjav)
325-
* The InputHandler.flagged property has been removed. It was never used internally, or exposed via the API, so was just overhead.
326-
* The src/system folder has been removed and all files relocated to the src/utils folder. This doesn't change anything from an API point of view, but did change the grunt build scripts slightly.
327-
* BitmapData.shadow and BitmapData.text now both `return this` keeping them in-line with the docs (thanks @greeny #2634)
328-
* Group.align has had its arguments changed so that it's now `(width, height, ...)` instead of `(rows, columns, ...)` (thanks @deargle #2643)
329-
* Group.align now returns `true` if the Group was aligned, or `false` if not.
330-
* The Loader.headers object has a new property `requestedWith`. By default this is set to `false`, but it can be used to set the `X-Requested-With` header to `XMLHttpRequest` (or any other value you need). To enable this do `this.load.headers.requestedWith = 'XMLHttpRequest'` before adding anything to the Loader.
331-
* ScaleManager.hasPhaserSetFullScreen is a new boolean that identifies if the browser is in full screen mode or not, and if Phaser was the one that requested it. As it's possible to enter full screen mode outside of Phaser, and it then gets confused about what bounding parent to use.
332-
* Phaser.Tileset has a new property `lastgid` which is populated automatically by the TilemapParser when importing Tiled map data, or can be set manually if building your own tileset.
333-
* Stage will now check if `document.hidden` is available first, and if it is then never even check for the prefixed versions. This stops warnings like "mozHidden and mozVisibilityState are deprecated" in newer versions of browsers and retain backward compatibility (thanks @leopoldobrines7 #2656)
334-
* As a result of changes in #2573 Graphics objects were calling `updateLocalBounds` on any shape change, which could cause dramatic performances drops in Graphics heavy situations (#2618). Graphics objects now have a new flag `_boundsDirty` which is used to detect if the bounds have been invalidated, i.e. by a Graphics being cleared or drawn to. If this is set to true then `updateLocalBounds` is called once in the `postUpdate` method (thanks @pengchuan #2618)
335-
* Phaser.Image now has the ScaleMinMax component.
336-
* Animations now allow for speeds greater than 0, rather than forcing them to be greater than 1. This allows you to have animation speeds slower than 1 frame per second (thanks @jayrobin #2664)
337-
* Weapon.fire and all related methods (fireAtXY, fireAtPointer, fireAtSprite) now all return the instance of the Phaser.Bullet that was fired, or `null` if nothing was fired. Previously it would return a boolean, but this change allows you to perform additional processing on the Bullet as required (thanks @JTronLabs #2696)
338-
* Sound.loopFull now returns the Sound instance that was looped (thanks @hilts-vaughan #2697)
339-
* ArcadePhysics Body.rotation now reads its initial value from sprite.angle instead of sprite.rotation. The property was immediately replaced with the correct value in Body.preUpdate regardless, but it keeps it consistent (thanks @samme #2708)
340-
* Weapon.fire now tracks rotation properly, when using an offset and tracking a sprite (thanks @bobonthenet #2672)
318+
* TypeScript definitions fixes and updates (thanks )
319+
* Docs typo fixes (thanks )
320+
*
321+
*
322+
*
341323

342324
### Bug Fixes
343325

344-
* A Group with `inputEnableChildren` set would re-start the Input Handler on a Sprite, even if that handler had been disabled previously.
345-
* Weapon.autofire wouldn't fire after the first bullet, or until `fire` was called, neither of which are requirements. If you now set this boolean the Weapon will fire continuously until you toggle it back to false (thanks @alverLopez #2647)
346-
* ArcadePhysics.World.angleBetweenCenters now uses `centerX` and `centerY` properties to check for the angle between, instead of `center.x/y` as that property no longer exists (thanks @leopoldobrines7 #2654)
347-
* The Emitter.makeParticles `collide` argument didn't work, as a result of #2661, but is now properly respected thanks to that change (thanks @samme #2662)
348-
* Sound.play would throw the error "Uncaught DOMException: Failed to execute 'disconnect' on 'AudioNode': the given destination is not connected." in Chrome, if you tried to play an audio marker that didn't exist, while a valid marker was already playing.
349-
* Text bounds would incorrectly displace if the Text resolution was greater than 1 (thanks @valent-novem #2685)
350-
* TilemapParser would calculate widthInPixels and heightInPixels were being read incorrectly from JSON data (capitalisation of properties) (thanks @hexus #2691)
351-
* A tinted Texture in Canvas mode wouldn't be updated properly if it was also cropped, beyond the initial crop. Now a cropped texture will re-tint itself every time the crop is updated, and has changed (thanks @phoenixyjll #2688)
352-
* The Weapon.fireRateVariance property was never taken into account internally. It's now applied to the firing rate correctly (thanks @noseglid #2715)
353-
* Text.updateText now sets `Text.dirty = false`, which stops Text objects from having `updateText` called twice on them after creation.
326+
*
327+
*
328+
*
354329

355330
### Pixi Updates
356331

357332
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.
358333

359-
* This version contains significant fixes for `DisplayObject.getBounds` and `DisplayObjectContainer.getBounds`. The methods can now accept an optional argument `targetCoordinateSpace` which makes it much more flexible, allowing you to check the bounds against any target, not just local and global ones. If the `targetCoordinateSpace` is a valid DisplayObject:
360-
361-
- If it's a parent of the caller at some level it will return the bounds
362-
relative to it.
363-
- if it's not parenting the caller at all, it will get the global bounds of
364-
it, and the caller and will calculate the x and y bounds of the caller
365-
relative to the targetCoordinateSpace DisplayObject.
366-
367-
As a result this also fixes how empty Groups are treated when they have no other children except Groups. So now calculations are correct.
368-
* DisplayObjectContainer.contains(child) is a new method which determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. This method is used in the new getBounds function.
369-
* Corrected DisplayObjects default `_bounds` rect from (0, 0, 1, 1) to (0, 0, 0, 0).
370-
* Thanks to @fmflame for his hard work on the above (#2639 #2627)
371-
* The methods `setStageReference` and `removeStageReference` have been removed from all Pixi classes. Objects no longer have `stage` properties, or references to the Stage object. This is because no reference to the Stage is required for any calculations, and Phaser can only have 1 Stage, so adding and removing references to it were superfluous actions.
372-
* The file pixi/utils/Polyk.js has been removed, as it was no longer used with Pixi or Phaser (we replaced it with EarCut a while ago)
334+
*
335+
*
336+
*
373337

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

@@ -404,10 +368,10 @@ All rights reserved.
404368

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

407-
[get-js]: https://github.com/photonstorm/phaser/releases/download/v2.6.2/phaser.js
408-
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v2.6.2/phaser.min.js
409-
[get-zip]: https://github.com/photonstorm/phaser/archive/v2.6.2.zip
410-
[get-tgz]: https://github.com/photonstorm/phaser/archive/v2.6.2.tar.gz
371+
[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.0.0/phaser.js
372+
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.0.0/phaser.min.js
373+
[get-zip]: https://github.com/photonstorm/phaser/archive/v3.0.0.zip
374+
[get-tgz]: https://github.com/photonstorm/phaser/archive/v3.0.0.tar.gz
411375
[clone-http]: https://github.com/photonstorm/phaser.git
412376
[clone-ssh]: git@github.com:photonstorm/phaser.git
413377
[clone-svn]: https://github.com/photonstorm/phaser

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "phaser",
3-
"version": "2.6.2",
4-
"release": "Kore Springs",
3+
"version": "3.0.0",
4+
"release": "Shadow Coast",
55
"description": "A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.",
66
"author": "Richard Davey <rdavey@gmail.com> (http://www.photonstorm.com)",
77
"logo": "https://raw.github.com/photonstorm/phaser/master/phaser-logo-small.png",

resources/release-names.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Amadicia *
1515

1616
Capital: Amador *
1717
Cities: Abila, Bellon, Jeramel, Mardecin, Sienda *
18-
POI: Mountains of Mist, River Eldar, River Sharia, Shadow Coast *
18+
POI: River Eldar, River Sharia, Shadow Coast *
1919

2020
Andor
2121

@@ -37,7 +37,7 @@ POI: River Mora
3737

3838
Cairhien *
3939

40-
Capital: Cairhien
40+
Capital: Cairhien *
4141
Cities: Eianrod *, Jurene, Maerone, Morelle, Selean, Taien, Tremonsien
4242

4343
Ghealdan *

src/Phaser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var Phaser = Phaser || { // jshint ignore:line
1414
* @constant
1515
* @type {string}
1616
*/
17-
VERSION: '2.6.2',
17+
VERSION: '3.0.0-dev',
1818

1919
/**
2020
* An array of Phaser game instances.

0 commit comments

Comments
 (0)