Rafael Barbosa Lopes
bf9d516ef4
Simplify detection of nw.js (formerly Node-WebKit).
2015-06-12 15:06:22 -03:00
photonstorm
af42f5d4c9
Cache.getJSON has a new parameter: clone
. If set it will return a clone of the object stored in the Cache rather than a reference to it.
2015-06-12 12:16:58 +01:00
photonstorm
0b6bf3f52f
Extended getUserMedia check.
2015-06-11 06:01:40 +01:00
photonstorm
681d8679e7
Rectangle.resize allows you to resize a Rectangle to the new given dimensions without altering its position.
2015-06-11 06:01:29 +01:00
photonstorm
10a3df1ef5
Set the Video baseTexture to __default until the stream starts.
2015-06-10 14:21:58 +01:00
photonstorm
5458097006
Renamed createVideoStream to startMediaStream.
...
Refactored Video constructor significantly - you can no longer create a webcam stream from the constructor, as it doesn't give you time to respond to onAccess and onError signals in Firefox. Instead call startMediaStream directly having set-up your signal listeners first.
startMediaStream now has a chance to dispatch the onError signal if the webcam has been blocked entirely by the browser (auto-block or remembered block). autoPlay attribute removed to stop Firefox throwing a "Invalid URI. Load of media resource failed" error.
Tidied up Video.destroy to properly remove video element from the DOM.
2015-06-10 00:59:24 +01:00
photonstorm
1c1a2ac195
Volume should default to 1 if undefined OR null (as from an Audio Sprite)
2015-06-09 20:55:20 +01:00
photonstorm
5c6eab86c0
Swapped to the shorter 'between' method.
2015-06-09 20:54:52 +01:00
nextht
6f5d4b93b8
Fix mask combine filter bug
...
In the demo (code below), i create a group with a rect mask, and create a sprite as child with a blurXY filter, then nothing is displayed.
So i hack WebGLFilterManager's pushFilter and popFilter method, in pushFilter method i create a new stencilManager instance and cache the old one, in popFilter i destroy the new stencilManager and restore the old one, then this workaround works rightly as i expect.
I think this is bug for PIXI, so i hope @GoodBoyDigital and @photonstorm can help me to check whether this fixing is right or not, thanks.
var game = new Phaser.Game(800, 600, Phaser.WEBGL, 'phaser-example', { preload: preload, create: create });
function preload() {
game.load.image('phaser', 'assets/sprites/phaser2.png');
game.load.script('filterX', '../filters/BlurX.js');
game.load.script('filterY', '../filters/BlurY.js');
}
function create() {
var logo = game.add.sprite(game.world.centerX, game.world.centerY, 'phaser');
logo.anchor.setTo(0.5, 0.5);
var blurX = game.add.filter('BlurX');
var blurY = game.add.filter('BlurY');
logo.filters = [blurX, blurY];
var group = game.add.group();
group.addChild(logo);
group.mask = game.add.graphics();
group.mask.beginFill(0xff);
group.mask.drawRect(0,0,500,500);
}
2015-06-08 20:43:20 +08:00
Charlo
70428fd39c
Fixed linting errors
2015-06-06 12:54:14 +02:00
Charlo
17a8116382
Added JSON support for BitmapFont
2015-06-06 12:35:08 +02:00
photonstorm
2b0abb67dd
onDragUpdate is a new signal that is dispatched whenever a Game object enabled for input and drag is moved by a pointer (i.e. during a drag event). See the Phaser.InputHandler.enableDrag
docs for parameter details and the new Phaser Example.
2015-06-04 20:58:00 +01:00
photonstorm
eec99db8a9
Readme update.
2015-06-04 04:24:02 +01:00
Richard Davey
660ab8510c
Merge pull request #1833 from danxexe/fix-drawcircle-docstring
...
Fix docstring of drawCircle
2015-06-04 04:23:45 +01:00
DanX
860d2e9538
Fix docstring of drawCircle
2015-06-03 13:41:42 -03:00
photonstorm
a971928bbc
jshint fixes.
2015-06-03 13:22:29 +01:00
photonstorm
52b1b499a8
Removed un-needed Pixi file.
2015-06-03 05:28:24 +01:00
photonstorm
560fed484f
Added BitmapText.purgeGlyphs method.
2015-06-03 05:28:24 +01:00
photonstorm
03a7b6a708
Updated Destroy component to deal with BitmapText glyphs pool.
2015-06-03 05:28:24 +01:00
photonstorm
5e265bbe86
Re-ordered carriage-return detection.
2015-06-03 05:28:24 +01:00
photonstorm
90d08fbf24
Updated jsdocs and added align parameter to method call.
2015-06-03 05:28:24 +01:00
photonstorm
fa7259fd75
Removed debug calls.
2015-06-03 05:28:24 +01:00
photonstorm
fb4709fb1a
Removed PIXI.BitmapText as it's no longer used.
2015-06-03 05:28:24 +01:00
photonstorm
01de0de7ac
Added BitmapText global.
2015-06-03 05:28:24 +01:00
photonstorm
2484ced06d
Typo.
2015-06-03 05:28:24 +01:00
photonstorm
cf5238c749
Removed use of PIXI.BitmapText entirely. Moved all update and support functions to Phaser.
2015-06-03 05:28:23 +01:00
photonstorm
ed82097151
Removed un-necessary PIXI.TextureCache pollution in Phaser.LoaderParser.bitmapFont.
2015-06-03 05:28:23 +01:00
photonstorm
17648b74db
Complete refactoring of PIXI.updateText - now properly respects the maxWidth setting regardless of kerning or font scale.
2015-06-03 05:28:23 +01:00
Richard Davey
1e84ece5e4
Merge pull request #1831 from clark-stevenson/dev
...
Minor TS Update
2015-06-03 00:53:29 +01:00
Clark Stevenson
a8e2483bcf
Minor Update.
2015-06-02 23:28:28 +01:00
photonstorm
76e2b00c82
Fixed pad jsdoc and ts defs ( #1823 )
2015-06-02 19:53:30 +01:00
luckylooke
ee22bbbd05
docs: parameter description augmented
...
addTilemap 'url' parameter text augmented
2015-05-31 13:21:33 +02:00
photonstorm
cc5740af10
BitmapText line spacing and word wrapping has been vastly improved and bought in-line with how Pixi 3 handles it, but with additional anchor support.
2015-05-31 01:31:11 +01:00
Richard Davey
608e2b59ad
Merge pull request #1825 from rsadwick/dev
...
fixed the responsive example
2015-05-30 20:03:45 +01:00
Richard Davey
187d947c29
Merge pull request #1806 from joshtepei/patch-2
...
Fixed a comma error in README.md
2015-05-30 20:02:59 +01:00
Richard Davey
86f155da80
Merge pull request #1804 from asyncanup/patch-1
...
Fixed spelling error in 'rotation'
2015-05-30 20:02:09 +01:00
Richard Davey
d0386ae493
Merge pull request #1827 from jamesgroat/dev
...
Fix cache.getKeys() definition.
2015-05-30 20:01:16 +01:00
jamesgroat
0e493a7102
Fix cache.getKeys() definition.
2015-05-29 19:20:10 -07:00
Ryan Sadwick
4c1413e9dd
fixed the responsive example - spriteMiddle was not defined and using game instead of this.game was breaking the entire example
2015-05-29 11:10:19 -04:00
photonstorm
1438248388
Group.add and Group.addAt will only create a Physics Body on the child if it doesn't already have one. This is a change from 2.3 where it would replace the physics body property with the new body, but this could lead to garbage build-up over time, so you should now properly destroy the body before changing it.
2015-05-29 00:59:23 +01:00
photonstorm
3ad60b815b
Docs update.
2015-05-27 18:07:38 +01:00
photonstorm
5ef9b0a5e6
TilemapParser.parseTiledJSON would ignore 'falsey' properties set on Objects in Tiled JSON tilemaps, such as x: 0
or visible: false
. These properties are now accurately copied over to the destination map data (thanks @MaksJS #1818 )
2015-05-27 18:07:33 +01:00
photonstorm
fcb2dc8306
Added snapPoint value (currently unused)
2015-05-26 20:01:57 +01:00
photonstorm
83b533557d
Docs update.
2015-05-26 20:01:57 +01:00
photonstorm
bdcb15fcde
Tween.to and Tween.from can now accept null
as the ease parameter value. If null
it will use the default tween, as per the documentation (thanks @nkovacs #1817 )
2015-05-26 20:01:57 +01:00
Richard Davey
7195f5f2e3
Merge pull request #1816 from clark-stevenson/dev
...
Handful of updates to the definition files.
2015-05-26 16:53:13 +01:00
Clark Stevenson
aff5d1d2c5
Handful of updates to the definition files.
...
#1812 is fixed. (Note the comments are generated and not updated)
#1803 was fixed previously at some point it seems and required no work
2015-05-25 17:09:22 +01:00
Casey Clyde
e935df328d
Sprite vs Tilemap can now check for overlap, without trying to separate
2015-05-23 22:39:12 -07:00
photonstorm
621e51d949
Docs update about the lovely 48000 Hz music bug.
2015-05-23 03:37:04 +01:00
photonstorm
18ae9268aa
Scope fix.
2015-05-22 15:14:49 +01:00