photonstorm
45278a1816
Tidied up the video loader.
2015-05-05 16:25:30 +01:00
photonstorm
766b110f99
SoundManager now uses the new Touch.addTouchLockCallback
methods to handle mobile device audio unlocking.
2015-05-05 16:25:16 +01:00
photonstorm
f265f98eb4
Input.Touch.addTouchLockCallback allows you to add a callback that will be invoked automatically upon a touchstart event. This is used internally by the SoundManager and Video objects to handle mobile device unlocking, but is exposed publicly as well.
2015-05-05 16:24:49 +01:00
photonstorm
f032578f27
Removed Input.moveCallback
and Input.moveCallbackContext
as neither are used any longer. Use Input.addMoveCallback
.
2015-05-05 16:09:22 +01:00
photonstorm
df6dc70a41
Various VideoTexture tests (this file will be removed shortly however).
2015-05-05 14:02:38 +01:00
photonstorm
33ece1fc52
Readme updates.
2015-05-05 14:02:10 +01:00
photonstorm
cc1c90d782
Removed videoSprite placeholder.
2015-05-05 14:01:47 +01:00
photonstorm
2e2d1c6bc2
Lots of updates to the Phaser.Video object.
2015-05-05 14:00:59 +01:00
photonstorm
7178ff61c7
jsdoc fixes.
2015-05-05 14:00:29 +01:00
photonstorm
f33082caf2
Support for Video texture updates.
2015-05-05 14:00:18 +01:00
photonstorm
d8c109b0a2
Tidying comments.
2015-05-05 14:00:05 +01:00
photonstorm
d98b984ad2
SoundManager.volume now has its input value clamped to ensure it's between 0 and 1 (inclusive)
2015-05-05 11:04:14 +01:00
photonstorm
36c7084e01
Adjusting property order.
2015-05-05 10:59:54 +01:00
photonstorm
adad60f8f4
SoundManager.onVolumeChange is a new signal that is dispatched whenever the global volume changes. The new volume is passed as the only parameter to your callback.
...
SoundManager.onMute is a new signal that is dispatched when the SoundManager is globally muted, either directly via game code or as a result of the game pausing.
SoundManager.onUnMute is a new signal that is dispatched when the SoundManager is globally un-muted, either directly via game code or as a result of the game resuming from a pause.
2015-05-05 10:58:43 +01:00
photonstorm
1a7450e126
Added blend modes to Color class for testing.
2015-05-04 03:01:09 +01:00
photonstorm
90a7a3e15c
Create video + added Video to config.
2015-05-04 03:00:45 +01:00
photonstorm
8a9e0c266a
Added currentTime and duration getters.
2015-05-04 03:00:22 +01:00
photonstorm
afb162849a
Docs update.
2015-05-04 03:00:03 +01:00
photonstorm
159a3f2f40
Readme updates.
2015-05-03 13:53:03 +01:00
photonstorm
c1ab5a3345
The first pass at the new Phaser.Video object.
2015-05-03 13:53:03 +01:00
photonstorm
f092101531
Added in support for Phaser.Video to LoadTexture component.
2015-05-03 13:53:03 +01:00
photonstorm
9ee0de9192
Cache.addVideo allows you to add a loaded video into the Phaser Cache. This is called automatically by the Phaser Loader, but may be invoked directly as well.
...
Cache.checkVideoKey allows you to check if a video is stored in the cache based on the given key.
Cache.getVideo allows you to extract a video from the Cache based on its key. The video element itself (or the Blob is loaded with asBlob true) will be found in the `data` property of the returned object.
Cache.removeVideo will remove a video from the Cache based on the given key.
2015-05-03 13:53:03 +01:00
photonstorm
77468e7876
Loader.video allows you to load a video file into Phaser. It works in the same way as Loader.audio, allowing you to pass an array of video files - and it will load the first one the device is capable of playing back. You can optionally load the video via xhr where the video data is converted to a Blob upon successful load.
2015-05-03 13:53:03 +01:00
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