photonstorm
4fa99f52c5
jsdocs fix and video loader fallback for Firefox.
2015-05-14 23:23:22 +01:00
photonstorm
4cd374691a
Wrapped the decodeAudio in a try/catch.
2015-05-14 23:21:19 +01:00
photonstorm
b91387c9a6
Extended the getUserMedia and window.URL check.
2015-05-14 23:20:52 +01:00
photonstorm
aabeccbdac
Working but needs refining.
2015-05-14 19:10:36 +01:00
photonstorm
e7ee1d5060
New build.
2015-05-14 16:52:09 +01:00
photonstorm
5a149ea4ec
Docs updates.
2015-05-14 16:52:09 +01:00
photonstorm
63887faffe
Loads of changes to deal with invalid textures and videos pending playback (i.e. Firefox)
2015-05-14 16:52:09 +01:00
photonstorm
71b242386d
Added video loadeddata callback for Firefox (which doesn't throw the canplay event until you actually start to play the video.. awesome, thanks Firefox)
2015-05-14 16:52:09 +01:00
photonstorm
ad4cf34d05
LoadTexture remembers texture valid state.
2015-05-14 16:52:09 +01:00
photonstorm
6c3d0833a3
Made silent texture fail the default.
2015-05-14 16:52:08 +01:00
Stephan de Souza
cb89b9c293
Missed comma
2015-05-14 10:04:37 -03:00
Stephan de Souza
7fb555e70e
Adds Heal Method to Phaser.Components.Health
...
Ideal when used in games with health packs, bonus items, or healing sprites.
In fact: Doing a negative damage causes the same effect, but as a new method is better for documentation.
2015-05-13 16:55:17 -03:00
Richard Davey
8aecb49d48
Merge pull request #1792 from formigone/dev-return-strict-bool
...
Return actual boolean value instead of 1
2015-05-13 10:59:13 +01:00
Rodrigo Silveira
ce7bcb2243
Return actual boolean value instead of 1
...
This is particularly helpful when doing === comparisons. Now isOdd is
consistent with isEven, which returns actual boolean values as well.
2015-05-13 05:59:34 -03:00
photonstorm
f7514dc979
Docs updates.
2015-05-12 13:03:27 +01:00
photonstorm
23f2a7ca66
Removed 'scale' from Group as it comes from PIXI anyway.
2015-05-12 13:03:27 +01:00
photonstorm
7c123b5203
Add guards around scaleSprite.
2015-05-12 13:03:26 +01:00
photonstorm
e6f71e959a
Graphics constructor now sets x/y parameters to zero if undefined. Before it would set them to undefined as the type check wasn't strict.
2015-05-12 13:03:26 +01:00
photonstorm
4aa22e22a1
Check texture property.
2015-05-12 13:03:26 +01:00
photonstorm
7b938f396e
Rectangle.bottomLeft has been added (thanks @mattmogford #1788 )
2015-05-12 13:03:26 +01:00
Richard Davey
c823037a4f
Merge pull request #1786 from clark-stevenson/dev
...
2.4.0 Definition Updates.
2015-05-11 02:08:28 +01:00
Clark Stevenson
c5396eb39e
2.4.0 Definition Updates.
2015-05-09 02:58:55 +01:00
Rafael Barbosa Lopes
0a9ca57a8f
Cleaning some white space.
2015-05-08 21:42:29 -03:00
Rafael Barbosa Lopes
29b22972ca
Proper code formatting.
2015-05-08 21:35:35 -03:00
Rafael Barbosa Lopes
d19411e069
Assign the default value of 60 FPS to the optional frameRate
parameter, when ommited.
...
This patch tries to prevent an issue in the tween timeline data generation
where an `undefined` value causes an unhandled type coercion when the program
calculate how many frames will be generated for a given `TweenData` timeline.
2015-05-08 19:39:13 -03:00
photonstorm
4a4d7d594c
Docs updates.
2015-05-08 04:15:03 +01:00
photonstorm
9b95026cc9
Removed ConvertTintToImage as the Image object it created was never returned or used anywhere, so pointless having.
...
Optimised the canvas creation - before it was creating a new canvas every time it tinted a sprite.
Removed un-used tint method (tint with overlay)
Optimised tintWithMultiply.
2015-05-08 04:14:56 +01:00
photonstorm
8e6f9574ea
Heavily tweaked tint texture handling. Can now be set by a texture and cached internally.
2015-05-08 04:13:34 +01:00
photonstorm
a1102d4d4d
Added re-tint reset.
2015-05-08 04:12:20 +01:00
photonstorm
2cd59bbf32
Tidying up docs and formatting.
2015-05-08 04:12:07 +01:00
photonstorm
6f351ff0c1
Texture.requiresReTint is a new property that controls if a texture requires the display object to be re-tinted having been updated internally. The LoadTexture component now sets this.
2015-05-08 04:11:48 +01:00
photonstorm
164039d7e7
Sets the re-tint state to true.
...
Removed un-needed clear call.
2015-05-08 04:10:39 +01:00
photonstorm
326cb759cf
Docs fixes.
2015-05-08 02:28:46 +01:00
photonstorm
25178fdf85
Docs update.
2015-05-08 01:51:18 +01:00
photonstorm
9cb7122743
Improved code formatting.
2015-05-08 01:51:06 +01:00
photonstorm
855831e4c2
BitmapData.update now validates the width
and height
values to ensure they aren't lower than 1, which would previously cause a context error.
2015-05-08 01:49:59 +01:00
photonstorm
d2b9bfe7b8
RetroFont has been updated to use RenderTexture.renderXY, removing the need for creating a Point object each update.
...
RetroFont no longer puts any entries into the TextureCache or generates any UUIDs on instantiation, speeding up creation and lowering memory use.
2015-05-08 01:49:11 +01:00
photonstorm
3bfce12036
New 2.4 build. Rawr!
2015-05-07 02:46:42 +01:00
photonstorm
e3b8fe3401
Proper setFrame call.
2015-05-07 02:45:33 +01:00
photonstorm
67704d0136
Updated Frame handling for Videos so sprites have their own frames, not a reference to the Videos frame.
2015-05-07 02:44:48 +01:00
photonstorm
12362a8300
Mark new textures as valid.
2015-05-07 02:44:29 +01:00
photonstorm
3f4a4e19ec
New 2.4 build.
2015-05-06 17:17:04 +01:00
photonstorm
af66b49f31
If a BitmapData is created with a width or height set to zero then the width and/or height are set to a default value (256) instead to avoid getContext errors.
2015-05-06 16:50:10 +01:00
photonstorm
303929a3ce
Added Video.snapshot and Video.grab support.
2015-05-06 16:47:46 +01:00
photonstorm
7cd89eedd6
jshint fixes.
2015-05-06 08:13:55 +01:00
photonstorm
55fa2893f9
Test build of 2.4.
2015-05-06 08:00:42 +01:00
photonstorm
89a95fa2c3
Added Video to gruntfile.
2015-05-06 07:58:04 +01:00
photonstorm
7f89a3de60
Fixed video event.
2015-05-06 07:57:52 +01:00
photonstorm
d14d9f4f64
Added onAccess and onError signals and tidied up the stream handling.
2015-05-06 07:25:34 +01:00
photonstorm
a24a22742a
Enabled Stream stopping.
2015-05-06 06:11:09 +01:00