photonstorm
a686f6e212
PIXI.DisplayObject.worldPosition contains the position of the DisplayObject (and therefore any object that inherits from it, such as Phaser.Sprite) taking into account all transforms in the display list. It is updated at the end of DisplayObject.updateTransform
. DisplayObject.position reflects only the position applied to the object directly, whereas worldPosition includes the positions that may have been applied to its ancestors.
...
PIXI.DisplayObject.worldScale contains the scale of the DisplayObject (and therefore any object that inherits from it, such as Phaser.Sprite) taking into account all transforms in the display list. It is updated at the end of `DisplayObject.updateTransform`. DisplayObject.scale reflects only the scale applied to the object directly, whereas worldScale includes any scales that may have been applied to its ancestors.
PIXI.DisplayObject.worldRotation contains the rotation of the DisplayObject (and therefore any object that inherits from it, such as Phaser.Sprite) taking into account all transforms in the display list. It is updated at the end of `DisplayObject.updateTransform`. DisplayObject.rotation reflects only the rotation applied to the object directly, whereas worldRotation includes any rotations that may have been applied to its ancestors.
2015-05-03 13:53:03 +01:00
photonstorm
f0ac93ea62
Device.oggVideo indicates if the browser can play back ogg video files.
...
Device.h264Video indicates if the browser can play back H264 (mp4) video files.
Device.mp4Video indicates if the browser can play back H264 (mp4) video files.
Device.webmVideo indicates if the browser can play back webm video files with the vp8 codec.
Device.vp9Video indicates if the browser can play back webm video files with the vp9 codec.
Device.hlsVideo indicates if the browser can play back mpeg video files.
2015-05-03 13:53:02 +01:00
photonstorm
420272d589
Added Phaser.VIDEO object type const.
2015-05-03 13:53:02 +01:00
photonstorm
3578cd097c
jsdocs fix.
2015-05-03 13:53:02 +01:00
photonstorm
df3c684760
PIXI.BaseTexture.forceLoaded allows you to set a BaseTexture as loaded, with the given width and height. It then calls BaseTexture.dirty
. This is important for when you don't want to modify the shape of the source object by forcing in complete
or dimension properties it may not naturally have, but still wish to use it as a base texture.
2015-05-03 13:53:02 +01:00
photonstorm
3f51463c7b
PIXI.CanvasTinter.tintWithMultiply was performing a double drawImage operation for no reason. Simplified down to a single drawImage call.
2015-05-03 13:53:02 +01:00
Boniatillo.com
9017081ef6
Fix to #1776 : load audiosprite from assetpack
...
The loader process the asset pack but use the method "audio" instead of
"audiosprite". The fix is to call "audiosprite" with the right
arguments.
2015-05-02 10:40:38 +02:00
Richard Davey
6a7006dec8
Merge pull request #1772 from soldoutactivist/dev
...
Stubbed Net and Debug so they can be properly excluded during a custom build.
2015-04-29 15:48:42 +01:00
photonstorm
e291f6d590
Added type
parameter to VideoTexture.fromUrl
allowing you to define the mime-type of the video file, which is required for Firefox and Safari in most cases.
2015-04-29 14:41:47 +01:00
Steven Rogers
105b08448d
Converted tabs to spaces.
2015-04-29 09:21:02 -04:00
Steven Rogers
b39788c5b0
Reverted Game/Debug classes
2015-04-29 09:10:53 -04:00
Steven Rogers
258b549a0d
Stubbed Net and Debug so they can be properly excluded during a custom build.
2015-04-29 09:07:06 -04:00
photonstorm
4c0e34e788
jsdoc fixes.
2015-04-29 13:13:47 +01:00
photonstorm
19f8a7316e
ArcadePhysics.Body.syncBounds is a new property that if true forces the Body to check itself against the Sprite.getBounds() dimensions and adjust its width and height accordingly. If false it will compare its dimensions against the Sprite scale instead, and adjust its width height if the scale has changed. Typically you would need to enable syncBounds
if your sprite is the child of a responsive display object such as a FlexLayer, or in any situation where the sprite scale doesn't change, but its parents scale is effecting the dimensions regardless.
2015-04-29 13:13:26 +01:00
photonstorm
da0bd86c26
Rectangle.ceil runs Math.ceil() on both the x and y values of the Rectangle.
...
Rectangle.ceilAll runs Math.ceil() on the x, y, width and height values of the Rectangle.
2015-04-29 13:13:11 +01:00
Jeremy Osborne
61f24f1719
Fix for #1761 : [Feature Request] Add Math.distanceSq(). Also, first attempt at a pull request for Phaser.
2015-04-28 10:03:35 -07:00
photonstorm
8290e8c371
Text.setShadow has two new optional parameters: shadowStroke
and shadowFill
. These allow you to set if the drop shadow is applied to the Text stroke, the Text fill or both of them (thanks @qdrj #1766 )
...
Text.shadowStroke and Text.shadowFill allow you to toggle if the drop shadow is applied to the Text stroke or fill independently.
2015-04-27 16:22:36 +01:00
photonstorm
d9434244a5
Removed array length vars.
2015-04-27 16:22:36 +01:00
photonstorm
c461c26393
Added onUpdate signal.
2015-04-27 16:22:36 +01:00
photonstorm
b645b277aa
jsdoc fix.
2015-04-27 16:22:36 +01:00
photonstorm
8519c9e394
The Tween.onStart signal wasn't dispatched if the Tween had a delay set. It's now dispatched immediately if no delay, or after the delay if set. It also respects the autoStart
parameter and will still dispatch even if autoStart
is true.
2015-04-27 16:22:35 +01:00
photonstorm
5d680ce4d4
pause not stop.
2015-04-27 16:22:35 +01:00
photonstorm
c6e9d7cad3
Removing PIXI.TextureCache calls as no longer used.
2015-04-27 16:22:35 +01:00
Richard Davey
cb9ca5658d
Merge pull request #1763 from clark-stevenson/dev
...
Update phaser.d.ts to 2.4.0
2015-04-27 13:50:52 +01:00
Clark Stevenson
548e022bc8
Updated typescript package for 2.4.0
2015-04-24 17:16:31 +01:00
Clark Stevenson
d6b597286b
Minor phaser.d.ts the Timer callback methods have optional callbackContexts
2015-04-24 16:02:19 +01:00
Clark Stevenson
b175389c72
Merge remote-tracking branch 'clark/patch-3' into dev
2015-04-24 15:57:35 +01:00
Clark Stevenson
51b891755b
Merge remote-tracking branch 'clark/patch-2' into dev
2015-04-24 15:51:19 +01:00
Clark Stevenson
d53cf52d50
Merge branch 'dev' of https://github.com/photonstorm/phaser into dev
2015-04-24 15:50:37 +01:00
Clark Stevenson
c4d4dc4bde
Removed State.math
...
See #1759
2015-04-23 14:52:59 +01:00
photonstorm
214e8abcda
Added play and stop methods and related signals.
2015-04-23 02:35:27 +01:00
photonstorm
30450cb9bc
Loader.atlas and Cache.addTextureAtlas
will now automatically determine the format of the JSON data (array or hash) when added to the Cache. You no longer need to specify it explicitly if JSON, only if XML.
2015-04-23 02:35:09 +01:00
Richard Davey
fa5ed16f7d
Trying something out :)
2015-04-22 04:22:17 +01:00
Richard Davey
be65b08e3b
Close to getting WebGL Tiling Sprites back again - animations now work too, but the placement isn't quite right.
2015-04-22 01:36:12 +01:00
photonstorm
aa9ea30e79
Working through fixing TilingSprites for WebGL.
2015-04-21 17:01:24 +01:00
photonstorm
05d0a94116
Phaser.AnimationParser methods JSONData
, JSONDataHash
and XMLData
have all had their cacheKey
parameter removed as it's no longer used.
2015-04-21 16:01:11 +01:00
photonstorm
04e7be38bf
Heavily refactored. Vastly optimised generateTexture method. Canvas renderer now works correctly with animated sprites, texture atlases and trimmed sprites. Warning: Currently breaks WebGL rendering. Will fix soon.
2015-04-21 15:57:17 +01:00
photonstorm
cc46212d5b
Refreshes a tiling texture on change of frame.
2015-04-21 15:55:58 +01:00
photonstorm
3d75902a67
Removed all calls to TilingTexture because it's now handled in the setFrame component.
2015-04-21 15:55:40 +01:00
photonstorm
ede76cf4f6
Frame.uuid has been removed (was flagged as deprecated for several releases). This has a two-fold effect: First it means that the property no longer exists and secondly it means that the AnimationParser (the class responsible for loading sprite sheets and texture atlases) no longer has to call either RandomDataGenerator.uuid OR populates the PIXI.TextureCache. The first saves some CPU time and the second saves memory by not creating references to textures it doesn't ever use. The PIXI.TextureCache is now ignored by Phaser other than for the __missing
and __default
textures.
2015-04-21 15:55:04 +01:00
photonstorm
a4963adec3
jsdoc clarification.
2015-04-21 15:54:44 +01:00
photonstorm
8fb5a89e1f
Added video alias.
2015-04-21 05:11:31 +01:00
photonstorm
8981e9603e
Removed Frame.uuid and updating TileSprite to work with animated sprites.
2015-04-21 05:11:19 +01:00
photonstorm
94b4d5d73c
Doc updates.
2015-04-21 05:10:27 +01:00
photonstorm
6c96568dd1
Files can now be added to the Loader with an absolute URL even if you have a Loader.baseURL set. In previous versions the baseURL would still be prepended to the file URL, but the Loader now checks if the a file URL begins with http
or //
and skips prepending the baseURL to it.
...
All calls to Loader methods that add files to the queue, such as `Loader.image` or `Loader.atlas`, now have the URL as an optional parameter. If not set Loader will assume the URL to be based on the key given. For example the following: `game.load.image("boom", "boom.png")` can now be expressed as just `game.load.image("boom")`, or `game.load.atlas("player", "player.png", "player.json")` can now be shortened to `game.load.atlas("player")`. Please see the freshly updated jsdocs for full details.
2015-04-21 02:14:41 +01:00
photonstorm
e6ab4884a6
Set usingWebAudio if using it :)
2015-04-21 02:07:47 +01:00
Clark Stevenson
aa4ebab29d
Update PIXI.d.ts generateTexture
...
Should fix #1719 ?
2015-04-20 16:27:35 +01:00
photonstorm
12f8454d62
close #1755
2015-04-19 01:35:15 +01:00
photonstorm
a5c14befa7
Formatting.
2015-04-17 19:56:14 +01:00
photonstorm
21de1e7c09
Added delayed load event handling back in.
2015-04-17 19:55:53 +01:00