Commit graph

2581 commits

Author SHA1 Message Date
Paul
14002ca02d Pointer - minor documentation update for click trampolines 2014-11-01 01:11:26 -07:00
Paul
3005419435 Click Trampolines - support to trampoline pointer events into 'click' events
- This is needed to support Fullscreen on IE11 because IE only trusts 'click' events for this operation; click trampolines as a general solution, although they are only required in some "special" cases.
2014-11-01 01:04:17 -07:00
Richard Davey
c37173a513 Merge pull request #1276 from clark-stevenson/patch-5
Update phaser.d.ts
2014-10-30 10:02:33 +00:00
Clark Stevenson
9445f19414 Update phaser.d.ts 2014-10-30 08:56:24 +00:00
photonstorm
98993365d4 Small refactor to pass jshint. 2014-10-29 07:46:56 +00:00
photonstorm
ce32d492af Phaser.Polygon has been refactored to address some Pixi v2 migration issues (thanks @pnstickne for the original implementation #1267)
Polygon.area is now only calculated when the Polygon points list is modified, rather than on every call.

Phaser.Polygon can now accept the points list in a variety of formats: Arrays of Points, numbers, objects with public x/y properties or any combination of, or as a parameter list (thanks @pnstickne for the original implementation #1267)

Polygon.contains now correctly calculates the result  (thanks @pnstickne @BurnedToast #1267)
2014-10-29 07:46:56 +00:00
photonstorm
dc20ab6020 Text.updateText was incorrectly increasing the size of the texture each time it was called (thanks @spayton #1261) 2014-10-29 07:46:56 +00:00
photonstorm
d1b79f90a5 Polygon.contains was toggling the return value on each valid hit (thanks @Singularetantum #1265 #1266) 2014-10-29 07:46:56 +00:00
Richard Davey
bda3637176 Merge pull request #1271 from pnstickne/wip-1190
Fix for Key.enabled issue #1190
2014-10-29 06:26:24 +00:00
Paul
2a933093d9 Comment fix
- Added `@private`
2014-10-28 22:47:44 -07:00
Paul
100b69eb99 Fix for Key.enabled issue #1190
- Added `enabled` getter; this resets the key (soft) and then disables they key
- Added `_enabled` property and updated internal usage
- Updated document for `reset`.
2014-10-28 22:45:30 -07:00
Richard Davey
cee5e2a6c0 Merge pull request #1261 from spayton/dev
Texture width is recalculated larger on subsequent call to updateText() ...
2014-10-28 15:47:08 +00:00
Richard Davey
84d6b164c0 Merge pull request #1264 from pnstickne/wip-1234
Add support for "rgba" to Phaser.Stage.backgroundColor
2014-10-28 15:45:34 +00:00
Richard Davey
84de75e7bd Merge pull request #1265 from Singularetantum/dev
Fixed return value of Polygon.contains
2014-10-28 15:37:18 +00:00
Paul
e08e99ea6a Updated Color.webToColor to accept [more] spaces
- webToColor now accepts arbitrary spaces, which are allowed per CSS rules (percents still not supported)
2014-10-28 06:25:20 -07:00
Paul
3cfe200ed1 Minor documentation cleanup 2014-10-28 06:12:48 -07:00
Sebastian Bombitzky
1e3c7cfee7 Fixed return value of Polygon.contains
Polygon.contains was toggling the return value on each valid hit.
2014-10-28 14:04:33 +01:00
Paul
37a77c674f Add support for "rgba" to Phaser.Stage.backgroundColor
- backgroundColor now uses valueToColor which supports hex strings, web/rgba strings, and hex numbers.
 - valueToColor normalizes across hexToColor/webToColor/getRGB; see comments
 - hexToColor now documents the prefix being optional and allows the `0x` prefix.
 - webToColor now exctracts an alpha channel if present - as a slight misfeature it will also accept `rgb(..,a)`.
2014-10-28 05:45:00 -07:00
spayton
a942a03631 Texture width is recalculated larger on subsequent call to updateText() when text has a stroke thickness > 1
In function override Phaser.Text.prototype.updateText(), don't include this.context.lineWidth in width calculation as it's already incorporated by this.style.strokeThickness.
2014-10-28 11:48:57 +00:00
photonstorm
98e6f155de New build files. 2014-10-28 01:50:25 +00:00
photonstorm
1df98d82e3 You can now call Tween.to again on a Tween that has already completed. This will re-use the same tween, on the original object, without having to recreate the Tween again. This allows a single tween instance to be re-used multiple times, providing they are linked to the same object (thanks InsaneHero) 2014-10-28 01:49:20 +00:00
photonstorm
26a1a080d2 Buttons are now waiting to be told when they're removed from the World. 2014-10-28 01:49:14 +00:00
photonstorm
08a2b12d7d Tidied up the jsdocs. 2014-10-28 01:48:56 +00:00
photonstorm
d050b8471b Added onRemovedFromWorld signal. Not currently used anywhere, but will be. 2014-10-28 01:48:42 +00:00
photonstorm
9efa5efa0f Tidied up the Signal class and added a call counter to SignalBinding. 2014-10-28 01:48:24 +00:00
photonstorm
e4ddf316cc New build files for testing. 2014-10-27 23:31:26 +00:00
photonstorm
dfa442db93 Particle.Emitter will now automatically set particle.body.skipQuadTree to true to help with collision speeds within Arcade Physics.
Particle.Emitter.explode (or `Emitter.start` with the `explode` parameter set to `true`) will immediately emit the required quantity of particles and not delay until the next frame to do so. This means you can re-use a single emitter across multiple places in your game that require explode-style emissions, just by adjusting the `emitter.x` and `emitter.y` properties before calling explode (thanks Insanehero)
2014-10-27 23:29:43 +00:00
photonstorm
a471cfc235 Game.destroy now destroys either the WebGLRenderer or CanvasRenderer, whichever Pixi was using. 2014-10-27 22:09:39 +00:00
photonstorm
da87c75e00 Loader.useXDomainRequest used to be enabled automatically for IE9 but is now always set to false. Please enable it only if you know your server set-up / CDN requires it, as some most certainly do, but we're finding them to be less and less used these days, so we feel it's safe to now disable this by default (#1248)
Loader.json was using the wrong context in IE9 with XDomainRequest calls (thanks @pnstickne #1258)
2014-10-27 12:31:55 +00:00
photonstorm
0f3cda0aed Cache.getRenderTexture will retrieve a RenderTexture that is stored in the Phaser Cache. This method replaces Cache.getTexture which is now deprecated.
Cache.autoResolveURL is a new boolean (default `false`) that automatically builds a cached map of all loaded assets vs. their absolute URLs, for use with Cache.getURL and Cache.checkURL. Note that in 2.1.3 and earlier this was enabled by default, but has since been moved behind this property which needs to be set to `true` *before* you load any assets to enable.

Cache._resolveUrl has been renamed to Cache._resolveURL internally and gained a new parameter. This method is a private internal one.

Cache.getUrl is deprecated. The same method is now available as Cache.getURL.

XML files weren't being added to the URL map.

Cache._resolveURL was causing a Sound double-load in Firefox and causing errors (thanks @domonyiv #1253)
2014-10-27 11:46:24 +00:00
photonstorm
12c2f83bfc Repackaging for 2.1.4 release. 2014-10-27 10:59:37 +00:00
Richard Davey
35c42e3073 Tilemaps in WebGL wouldn't update after the first frame due to a subtle change in how Pixi uploads new textures to the GPU. 2014-10-25 10:09:04 +01:00
photonstorm
d01a96996b Merge remote-tracking branch 'origin/dev' into dev 2014-10-23 16:06:40 +01:00
photonstorm
f4f53984ef Merge remote-tracking branch 'origin/master' into dev 2014-10-23 16:06:17 +01:00
Richard Davey
e32278575e Merge pull request #1247 from spayton/dev
crashfix: changed function call wordWrap() to runWordWrap()
2014-10-23 16:03:51 +01:00
photonstorm
d22f2bd89b Small fix for Text wordWrapping #1247 2014-10-23 16:03:29 +01:00
photonstorm
18f6b320ab Preparing for Phaser v2.2.0 2014-10-23 13:52:39 +01:00
spayton
394ede84a9 changed function call wordWrap() to runWordWrap() 2014-10-23 13:05:21 +01:00
photonstorm
7557e4ed36 Phaser 2.1.3 2014-10-23 12:34:33 +01:00
photonstorm
f3f022b74a Final Pixi v2 updates. 2014-10-23 12:32:56 +01:00
photonstorm
b63e9fc8c6 Phaser 2.1.3 build files. 2014-10-23 12:27:34 +01:00
photonstorm
9cb42a933d Fixed for Pixi v2 new method of batching. 2014-10-23 12:27:25 +01:00
photonstorm
0430cf8a6a jsdoc fix 2014-10-23 12:27:07 +01:00
photonstorm
0e2378d276 Phaser 2.1.3 release. 2014-10-22 23:53:32 +01:00
photonstorm
1e1d1b9018 Updated the build manifests. 2014-10-22 23:53:18 +01:00
photonstorm
bebb83bad4 Removed methods that Pixi now offers directly. 2014-10-22 23:53:02 +01:00
photonstorm
e14c6efbc3 Updated to support new Pixi style of points. 2014-10-22 23:52:46 +01:00
photonstorm
157d515940 2.1.3 Build. 2014-10-22 22:49:31 +01:00
photonstorm
b56c3bf54e jshint fixes 2014-10-22 22:49:20 +01:00
photonstorm
ae76c90dc1 Phaser 2.1.3 build files. 2014-10-22 22:35:33 +01:00