Skip to content

Commit 25aa326

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 6dde700 + f621090 commit 25aa326

120 files changed

Lines changed: 30616 additions & 30284 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.

.eslintignore

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
merge/Intro.js
2-
merge/Outro.js
3-
merge/plugins/path/
4-
merge/physics/p2/p2.js
5-
merge/animation/creature/
6-
src/physics/matter-js/
7-
src/renderer/webgl/renderers/shapebatch/earcut.js
8-
webpack.*.js
1+
src/phaser-arcade-physics.js
2+
src/animations/config.json
3+
src/physics/matter-js/lib/
4+
src/physics/matter-js/poly-decomp/
5+
src/polyfills/
6+
src/renderer/webgl/shaders/
7+
src/geom/polygon/Earcut.js
8+
src/utils/array/StableSort.js
9+
src/utils/object/Extend.js
10+
src/structs/RTree.js

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"root": true,
23
"env": {
34
"browser": true,
45
"es6": true,
@@ -10,6 +11,7 @@
1011
"CANVAS_RENDERER": true,
1112
"Phaser": true,
1213
"p2": true,
14+
"process": true,
1315
"ActiveXObject": true
1416
},
1517
"rules": {

.github/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before contributing, please read the [code of conduct](https://github.com/photon
1414

1515
**3. Create an isolated and reproducible test case.** If you are reporting a bug, make sure you also have a minimal, runnable, code example that reproduces the problem you have.
1616

17-
**4. Include a live example.** After narrowing your code down to only the problem areas, make use of [jsFiddle][1], [jsBin][2], or a link to your live site so that we can view a live example of the problem.
17+
**4. Include a live example.** After narrowing your code down to only the problem areas, make use of [jsFiddle][1], [jsBin][2], [CodePen][5], or a link to your live site so that we can view a live example of the problem.
1818

1919
**5. Share as much information as possible.** Include browser version affected, your OS, version of the library, steps to reproduce, etc. "X isn't working!!!1!" will probably just be closed.
2020

@@ -74,3 +74,4 @@ Thanks to Chad for creating the original Pixi.js Contributing file which we adap
7474
[2]: http://jsbin.com/
7575
[3]: http://nodejs.org
7676
[4]: http://www.html5gamedevs.com/forum/14-phaser/
77+
[5]: https://codepen.io/pen?template=YeEWom "Phaser 3 game template"

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This Issue is about (delete as applicable)
1010
* An error on the web site
1111
* A problem with my own code
1212

13-
API errors must include example code showing what happens, and why you don't believe this is the expected behavior. Issues posted without code take _far_ longer to get resolved, _if ever_. Feel free to use a site such as jsbin to demo the problem. If we can run it, and see the error, we can usually fix it.
13+
API errors must include example code showing what happens, and why you don't believe this is the expected behavior. Issues posted without code take _far_ longer to get resolved, _if ever_. Feel free to use a site such as jsBin or [CodePen](https://codepen.io/pen?template=YeEWom) to demo the problem. If we can run it, and see the error, we can usually fix it.
1414

1515
If your Issue contains _any_ form of hostility it will be instantly closed.
1616

CHANGELOG.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Change Log
2+
3+
## Version 3.2.0 - In Development
4+
5+
### New Features
6+
### Bug Fixes
7+
### Updates
8+
9+
## Version 3.1.2 - 23rd February 2018
10+
11+
### Updates
12+
13+
* Hundreds of JSDoc fixes across the whole API.
14+
* Tween.updateTweenData will now check to see if the Tween target still exists before trying to update its properties.
15+
* If you try to use a local data URI in the Loader it now console warns instead of logs (thanks @samme)
16+
17+
### Bug Fixes
18+
19+
* The KeyCode `FORWAD_SLASH` had a typo and has been changed to `FORWARD_SLASH`. Fix #3271 (thanks @josedarioxyz)
20+
* Fixed issue with vertex buffer creation on Static Tilemap Layer, causing tilemap layers to appear black. Fix #3266 (thanks @akleemans)
21+
* Implemented Static Tilemap Layer scaling and Tile alpha support.
22+
* Fixed issue with null texture on Particle Emitter batch generation. This would manifest if you had particles with blend modes on-top of other images not appearing.
23+
* Added missing data parameter to ScenePlugin. Fixes #3810 (thanks @AleBles)
24+
25+
## Version 3.1.1 - 20th February 2018
26+
27+
### Updates
28+
29+
* The entire codebase now passes our eslint config (which helped highlight a few errors), if you're submitting a PR, please ensure your PR passes the config too.
30+
* The Web Audio Context is now suspended instead of closed to allow for prevention of 'Failed to construct AudioContext: maximum number of hardware contexts reached' errors from Chrome in a hot reload environment. We still strongly recommend reusing the same context in a production environment. See [this example](http://labs.phaser.io/view.html?src=src%5Caudio%5CWeb%20Audio%5CReuse%20AudioContext.js) for details. Fixes #3238 (thanks @z0y1 @Ziao)
31+
* The Webpack shell plugin now fires on `onBuildExit`, meaning it'll update the examples if you use `webpack watch` (thanks @rblopes)
32+
* Added `root: true` flag to the eslint config to stop it scanning further-up the filesystem.
33+
34+
### Bug Fixes
35+
36+
* Math.Fuzzy.Floor had an incorrect method signature.
37+
* Arcade Physics World didn't import GetOverlapX or GetOverlapY, causing `separateCircle` to break.
38+
* TileSprite was missing a gl reference, causing it to fail during a context loss and restore.
39+
* The Mesh Game Object Factory entry had incorrect arguments passed to Mesh constructor.
40+
* Removed unused `_queue` property from `ScenePlugin` class (thanks @rblopes)
41+
* The variable `static` is no longer used in Arcade Physics, fixing the 'static is a reserved word' in strict mode error (thanks @samme)
42+
* Fixed `Set.union`, `Set.intersect` and `Set.difference` (thanks @yupaul)
43+
* The corner tints were being applied in the wrong order. Fixes #3252 (thanks @Rybar)
44+
* BitmapText objects would ignore calls to setOrigin. Fixes #3249 (thanks @amkazan)
45+
* Fixed a 1px camera jitter and bleeding issue in the renderer. Fixes #3245 (thanks @bradharms)
46+
* Fixed the error `WebGL: INVALID_ENUM: blendEquation: invalid mode.` that would arise on iOS. Fixes #3244 (thanks @Ziao)
47+
* The `drawBlitter` function would crash if `roundPixels` was true. Fixes #3243 (thanks @Jerenaux and @vulcanoidlogic)
48+
49+
## Version 3.1.0 - Onishi - 16th February 2018
50+
51+
### Updates
52+
53+
* Vertex resource handling code updated, further optimizing the WebGL batching. You should now see less gl ops per frame across all batches.
54+
* The `Blitter` game object has been updated to use the `List` structure instead of `DisplayList`.
55+
* Arcade Physics World `disableBody` has been renamed `disableGameObjectBody` to more accurately reflect what it does.
56+
* Lots of un-used properties were removed from the Arcade Physics Static Body object.
57+
* Arcade Physics Static Body can now refresh itself from its parent via `refreshBody`.
58+
59+
### Bug Fixes
60+
61+
* A couple of accidental uses of `let` existed, which broke Image loading in Safari # (thanks Yat Hin Wong)
62+
* Added the static property `Graphics.TargetCamera` was added back in which fixed `Graphics.generateTexture`.
63+
* The SetHitArea Action now calls `setInteractive`, fixing `Group.createMultiple` when a hitArea has been set.
64+
* Removed rogue Tween emit calls. Fix #3222 (thanks @ZaDarkSide)
65+
* Fixed incorrect call to TweenManager.makeActive. Fix #3219 (thanks @ZaDarkSide)
66+
* The Depth component was missing from the Zone Game Object. Fix #3213 (thanks @Twilrom)
67+
* Fixed issue with `Blitter` overwriting previous objects vertex data.
68+
* The `Tile` game object tinting was fixed, so tiles now honor alpha values correctly.
69+
* The `BitmapMask` would sometimes incorrectly bind its resources.
70+
* Fixed the wrong Extend target in MergeXHRSettings (thanks @samme)
71+
72+
### New Features
73+
74+
* Destroying a Game Object will now call destroy on its physics body, if it has one set.
75+
* Arcade Physics Colliders have a new `name` property and corresponding `setName` method.
76+
* Matter.js bodies now have an inlined destroy method that removes them from the World.
77+
* Impact bodies now remove themselves from the World when destroyed.
78+
* Added Vector2.ZERO static property.

README.md

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Along with the fantastic open source community, Phaser is actively developed and
1111
Thousands of developers worldwide use Phaser. From indies and multi-national digital agencies, to schools and Universities. Each creating their own incredible [games](https://phaser.io/games/).
1212

1313
**Visit:** The [Phaser website](https://phaser.io) and follow on [Twitter](https://twitter.com/phaser_) (#phaserjs)<br />
14-
**Learn:** [API Docs](https://phaser.io/docs), [Support Forum][forum] and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)<br />
14+
**Learn:** [API Docs](https://github.com/photonstorm/phaser3-docs), [Support Forum][forum] and [StackOverflow](https://stackoverflow.com/questions/tagged/phaser-framework)<br />
1515
**Code:** 700+ [Examples](https://labs.phaser.io) (source available in this [repo][examples])<br />
1616
**Read:** Weekly [Phaser World](#newsletter) Newsletter<br />
1717
**Chat:** [Slack](https://phaser.io/community/slack) and [Discord](https://phaser.io/community/discord)<br />
@@ -24,7 +24,9 @@ Grab the source and join in the fun!
2424

2525
<div align="center"><img src="https://phaser.io/images/github/news.jpg"></div>
2626

27-
> 12th February 2018
27+
> 23rd February 2018
28+
29+
**Updated:** Thank you for the continued amazing response to the 3.0.0 release! We've carried on working hard and now prepared 3.1.2 for you, which is available today. Check out the [Change Log](#changelog) for more details.
2830

2931
After 1.5 years in the making, tens of thousands of lines of code, hundreds of examples and countless hours of relentless work: Phaser 3 is finally out. It has been a real labor of love and then some!
3032

@@ -92,13 +94,13 @@ npm install phaser
9294
[Phaser is on jsDelivr](http://www.jsdelivr.com/projects/phaser), a "super-fast CDN for developers". Include the following in your html:
9395

9496
```html
95-
<script src="//cdn.jsdelivr.net/npm/phaser@3.0.0/dist/phaser.js"></script>
97+
<script src="//cdn.jsdelivr.net/npm/phaser@3.1.2/dist/phaser.js"></script>
9698
```
9799

98100
or the minified version:
99101

100102
```html
101-
<script src="//cdn.jsdelivr.net/npm/phaser@3.0.0/dist/phaser.min.js"></script>
103+
<script src="//cdn.jsdelivr.net/npm/phaser@3.1.2/dist/phaser.min.js"></script>
102104
```
103105

104106
### License
@@ -110,7 +112,13 @@ Phaser is released under the [MIT License](https://opensource.org/licenses/MIT).
110112

111113
<img src="https://phaser.io/images/github/learn.jpg" align="right">
112114

113-
Phaser 3 is so brand new the paint is still wet. As such we don't yet have any guides or tutorials! This will change in the coming weeks and we'll update this area as they emerge. For now, please subscribe to the [Phaser World](https://phaser.io/community/newsletter) newsletter as we'll publish them in there first.
115+
Phaser 3 is so brand new the paint is still wet, but tutorials and guides are starting to come out!
116+
117+
* [Getting Started with Phaser 3](https://phaser.io/tutorials/getting-started-phaser3) (useful if you are completely new to Phaser)
118+
* [Making your first Phaser 3 Game](https://phaser.io/tutorials/making-your-first-phaser-3-game)
119+
* [Phaser 3 Bootstrap and Platformer Example](https://phaser.io/news/2018/02/phaser-3-bootstrap-platformer)
120+
121+
Also, please subscribe to the [Phaser World](https://phaser.io/community/newsletter) newsletter for details about new tutorials as they are published.
114122

115123
### Source Code Examples
116124

@@ -229,8 +237,25 @@ Should you wish to build Phaser 3 from source ensure you have the required packa
229237
You can then run `webpack` to perform a dev build to the `build` folder, including source maps for local testing, or run `npm run dist` to create a minified packaged build into the `dist` folder.
230238

231239
![Change Log](https://phaser.io/images/github/div-change-log.png "Change Log")
240+
<a name="changelog"></a>
241+
242+
## Version 3.1.2 - 23rd February 2018
243+
244+
### Updates
245+
246+
* Hundreds of JSDoc fixes across the whole API.
247+
* Tween.updateTweenData will now check to see if the Tween target still exists before trying to update its properties.
248+
* If you try to use a local data URI in the Loader it now console warns instead of logs (thanks @samme)
249+
250+
### Bug Fixes
251+
252+
* The KeyCode `FORWAD_SLASH` had a typo and has been changed to `FORWAD_SLASH`. Fix #3271 (thanks @josedarioxyz)
253+
* Fixed issue with vertex buffer creation on Static Tilemap Layer, causing tilemap layers to appear black. Fix #3266 (thanks @akleemans)
254+
* Implemented Static Tilemap Layer scaling and Tile alpha support.
255+
* Fixed issue with null texture on Particle Emitter batch generation. This would manifest if you had particles with blend modes on-top of other images not appearing.
256+
* Added missing data parameter to ScenePlugin. Fixes #3810 (thanks @AleBles)
232257

233-
We have always been meticulous in recording changes to the Phaser code base, and where relevant, giving attribution to those in the community who helped. This is something we'll continue with Phaser 3 and you'll see this section expand as we push through the 3.0.0 releases.
258+
Please see the complete [Change Log]((https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md)) for previous releases.
234259

235260
Looking for a v2 change? Check out the [Phaser CE Change Log](https://github.com/photonstorm/phaser-ce/blob/master/CHANGELOG.md)
236261

@@ -261,8 +286,8 @@ All rights reserved.
261286

262287
"Above all, video games are meant to be just one thing: fun. Fun for everyone." - Satoru Iwata
263288

264-
[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.0.0/phaser.js
265-
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.0.0/phaser.min.js
289+
[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.1.2/phaser.js
290+
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.1.2/phaser.min.js
266291
[clone-http]: https://github.com/photonstorm/phaser.git
267292
[clone-ssh]: git@github.com:photonstorm/phaser.git
268293
[clone-ghwin]: github-windows://openRepo/https://github.com/photonstorm/phaser

0 commit comments

Comments
 (0)