Commit graph

3294 commits

Author SHA1 Message Date
Richard Davey
2641e2ec75 Merge pull request #1462 from aressler38/dev
Support BLOB urls for audio files
2014-12-15 23:16:21 +00:00
aressler38
c9984633b5 fixing documentation typo 2014-12-15 14:12:09 -08:00
aressler38
f1bdd174b2 [ISSUE 1458] Allow BLOB urls when loading audio files 2014-12-15 12:57:30 -08:00
aressler38
5f12e18aa0 Merge branch 'dev' of https://github.com/aressler38/phaser into dev 2014-12-15 12:08:24 -08:00
photonstorm
9b967d1948 Removed a few more references in Animation.destroy. 2014-12-15 09:42:18 +00:00
photonstorm
5029427e14 Tween.stop fired a different set of onComplete parameters to Tween.update. Both now dispatch onComplete(target, tween) as the parameters in that order (thanks @P0rnflake #1450) 2014-12-15 09:42:18 +00:00
Richard Davey
d9229a2505 Merge pull request #1459 from pnstickne/wip-1456
RandomDataGenerator seeding fix
2014-12-15 09:32:25 +00:00
Paul
b3808890b2 RandomDataGenerator seeding fix
Per https://github.com/photonstorm/phaser/issues/1457 the `sow` function
terminates too early on certain false-y values including 0 (and possibly
"").

This changes that, so that 1) only `undefined` and `null` will terminate
the seed sequence processing (this is to maximize backwards compatibility)
and 2) the `length` of the array is honored.

The documentation also reflects the old (and new/altered) behavior.

This is very minor breaking change; hopefully such is mitigated with
leaving in the null/undefined termination.
2014-12-15 00:18:23 -08:00
Paul
466b021ca0 TilemapLayer: Re-added secondary copy-canvas
- This change uses a secondary canvas and rectangle clearing instead of a
  'copy' composition on the same canvas. This should hopefully address
  the flickering issue in Safari and Safari Mobile
2014-12-12 00:26:49 -08:00
photonstorm
965fbc96e7 Typo fixes :) 2014-12-11 22:30:24 +00:00
photonstorm
3c564a33b6 The P2 World constructor wouldn't let you use your own config unless you specified both the gravity *and* broadphase. Now allows one or both (thanks @englercj #1412) 2014-12-11 22:04:45 +00:00
photonstorm
93e0d2f3b1 Docs update. 2014-12-11 22:00:06 +00:00
photonstorm
4abb1550d7 P2.postBroadphaserHandler updated to avoid skipping final 2 pairs. 2014-12-11 22:00:06 +00:00
Richard Davey
bc1a24e970 Merge pull request #1429 from pnstickne/wip-1400
DOM.visualBounds now includes scrollbars
2014-12-11 21:58:55 +00:00
Richard Davey
091cb93ccd Merge pull request #1417 from pnstickne/wip-1410
Fixes #1410 where newChild.parent could be set to undefined before use
2014-12-11 21:52:55 +00:00
photonstorm
0cd0a5bd9b Phaser 2.2.3 Build Files for testing. 2014-12-11 09:26:14 +00:00
Richard Davey
46776956e0 Merge pull request #1440 from paul-reilly/dev
TilemapParser: fixed check for image collection
2014-12-10 23:10:53 +00:00
paul-reilly
ce603c3510 TilemapParser: fixed check for image collection 2014-12-10 22:42:17 +00:00
Richard Davey
9ef87ad395 Merge pull request #1428 from pnstickne/wip-1422-vertical-align
ScaleManager documentation updates
2014-12-10 17:16:46 +00:00
Richard Davey
b7df5b321e Merge pull request #1427 from pnstickne/wip-1426-emitter-docs
Corrected link to the Emitter documentation
2014-12-10 17:16:20 +00:00
photonstorm
028943baad Moved the updateTransform to a Game level update on Stage and replaced the Pixi version.
Added a boolean check, so it can be either updated from updateLogic or render without duplicating the process.
#1424
2014-12-10 10:37:37 +00:00
Paul
92a20a5f5f TileLayer - globalCompositionOperation set once
This might fix a safari issue; it also avoids repeatedly setting the
[same] composition operation and saving/loading context states.
2014-12-09 20:21:31 -08:00
photonstorm
4ad6df9a29 A test to try for #1424 2014-12-09 23:38:23 +00:00
photonstorm
8d9e1196c0 readme update. 2014-12-09 15:27:26 +00:00
photonstorm
22e8340df7 Fixes issue where Pixi CanvasTint didn't allow for browsers that bit-shift the alpha value on putImageData (Android Stock Browser, I'm looking at you!) 2014-12-09 15:27:26 +00:00
Richard Davey
797c23fc91 Merge pull request #1436 from clark-stevenson/dev
Fixed #1435
2014-12-09 11:11:36 +00:00
Clark Stevenson
ba71f3400e Removed static from properties #1435 2014-12-09 11:02:46 +00:00
Clark Stevenson
ce8a7c544a Fixed TypeScript: Device class definition #1435 2014-12-09 10:30:09 +00:00
Paul
8b513b842c DOM.visualBounds now includes scrollbars
- While not ideal this fixes most (if not all) of the ScaleManager issue
  pointed out in #1400. This issue should be addressed later. As of now,
  as an interim fix, this avoids the reported issue entirely (or at least
  I have not been able to reproduce it), as well as assorted artifacts
  when resizign a window while scaling.

- The is is the 2.1 behavior: In certain cases this can result in the
  right or bottom of the Game being cut-off slightly (the width of a
  scrollbar) instead of scaled, which is why it was originally changed.
2014-12-08 18:40:00 -08:00
Paul
6764517823 ScaleManager documentation updates
- Clarified proper usage of `pageAlignVertically` and add note about 2.2
  change and how to obtain 2.1 behavior.

- Removed the `@readonly` status of the `parentIsWindow` and `parentNode`;
  these can be updated in a controlled manner.

- Added intra-hyperlinks

- Updated some ancillary documentation
2014-12-08 18:06:26 -08:00
Paul
47672bb54c Corrected link to the Emitter documentation
The link in the Game Object drop-down was refered to a non-exisnant type.
This also changes it from "Emitter" to "Particle Emiter" for clarity of
intent with Particles.
2014-12-08 17:10:26 -08:00
Richard Davey
1bf3f08d8d Merge pull request #1420 from pnstickne/wip-1406
Fix Full Screen launching in Android Chrome
2014-12-07 11:33:52 +00:00
photonstorm
38a224df3e Tween.delay, Tween.repeat and Tween.yoyo will no longer throw an error if called before a TweenData object has been created (via Tween.to or Tween.from) (thanks @SomMeri #1419) 2014-12-07 11:31:48 +00:00
Paul
388ab1d98b Fix Full Screen launching in Android Chrome
The click trampoline added for IE prevents Chrome for Android from being
able to launch Full Screen mode with the default parameters for
`ScaleManger#startFullScreen`. (The desktop version of Chrome is not
affected.)

This fix adds an additional compatibility settings (`clickTrampoline`)
that can be used to configure when such is used. By default the
'when-not-mouse' mode is only enabled for Desktop browsers, where the
primary input is ubquitously a mouse.

There are no known breaking compatibility changes - the Full Screen should
be initiatable in Chrome for Android as it was in 2.1.x. The default
Android browser does not support Full Screen.
2014-12-06 12:30:40 -08:00
Paul
fe8c5021fa Fixes #1410
As pointed out, `newChild.parent` could be accessed after it was set to
undefined. This fix unifies the code from the various `destroy` methods so
the previou issue does not occur.
2014-12-05 19:34:17 -08:00
photonstorm
e7f3b9188e Preparing for Phaser 2.2.2 development. 2014-12-04 11:49:53 +00:00
photonstorm
62b7fce9c8 Merge remote-tracking branch 'origin/dev' 2014-12-04 11:40:58 +00:00
photonstorm
ea19aeae5c API Docs update. 2014-12-04 11:33:42 +00:00
photonstorm
a3533b9b75 Phaser 2.2.1. 2014-12-04 11:31:41 +00:00
photonstorm
d206e3c2d5 Docs update. 2014-12-04 11:28:02 +00:00
photonstorm
b0d8e43128 And Pixi fixed the premult alpha issue properly. Back in again! 2014-12-03 21:20:41 +00:00
photonstorm
847cde81a9 Custom Particle classes that used a BitmapData wouldn't work (thanks @hardalias #1402) 2014-12-03 20:59:44 +00:00
photonstorm
3371f9ff1e Added Game.debug reset method for when the debug manager is disabled (thanks @DanielSitarz #1407) 2014-12-03 20:56:39 +00:00
photonstorm
1227232fd6 Updated readme. 2014-12-03 20:54:25 +00:00
photonstorm
b05d745c40 Reverted changes as they broke all alpha support. Will put back once fixed in Pixi. 2014-12-03 20:54:25 +00:00
Richard Davey
8366a7bd6d Merge pull request #1408 from jotson/dev
Fixed TweenManager.isTweening() and .removeFrom()
2014-12-03 19:33:09 +00:00
John Watson
fcca6ba730 Fixed TweenManager.isTweening() and .removeFrom()
Updated invalid reference Tween._object to .target
2014-12-03 10:20:29 -08:00
photonstorm
e271c63ca6 Preparing for Phaser 2.2.1. 2014-12-03 13:41:48 +00:00
photonstorm
d8fee414b8 Merge remote-tracking branch 'origin/dev' 2014-12-03 10:40:35 +00:00
photonstorm
95ffa83e34 Phaser 2.2.0 Docs. 2014-12-03 10:39:20 +00:00