photonstorm
4ab5a07abf
jsdocs fix.
2015-08-24 12:03:03 +01:00
photonstorm
09f5742410
Tilemap.shuffle was calling the deprecated Phaser.Utils.shuffle, which has now moved to Phaser.ArrayUtils.shuffle.
2015-08-24 12:02:43 +01:00
photonstorm
bcedd921b7
Cache.addSpriteSheet didn't include default values for the frameMax
, margin
and spacing
arguments (thanks @vladkens #2017 #2018 )
2015-08-24 11:43:34 +01:00
photonstorm
845a14ff55
TilingSprite._renderCanvas wasn't correctly allowing for pixel rounding (thanks @ximop #2022
2015-08-24 11:38:59 +01:00
photonstorm
226b7070a8
Fixed issue with an extra 4px being added to the canvas elements because the display type wasn't set.
2015-08-24 11:32:32 +01:00
photonstorm
a5a503b02c
Phaser 2.4.3-RC1 build files.
2015-08-21 16:25:41 +01:00
photonstorm
5ffb5b558d
Tilemap.createFromObjects has been strengthened so that will only create Sprites for matching gids/ids/names. It also only sets the Sprite width and height values if they are present in the Tiled data (thanks @pparke #2012 )
2015-08-20 13:22:06 +01:00
photonstorm
22f7aacfcb
Added frameBased to the TweenManager and made Tween.frameBased reference that setting, allowing you to set it once ( #2015 )
2015-08-20 12:59:06 +01:00
photonstorm
a9354d4a3f
Added withinGame to Pointer Debug.
2015-08-20 12:48:09 +01:00
photonstorm
4fa1ffb4cf
JSDocs update.
2015-08-20 12:47:59 +01:00
photonstorm
99fbf35236
* Pointer.withinGame is no longer automatically set to 'false' in the Pointer.stop method - it will check if the Pointer actually is within the stage bounds and only set withinGame
to false if it's outside the bounds.
...
* MSPointer now has an `onPointerUpGlobal` handler for when the pointer is released outside of the canvas, but still within the browser window. This means that in IE11 a Sprites `onInputUp` event will now trigger even when outside the canvas (thanks @bvargish #2000 )
* MSPointer now has handles for the pointer being over and outside of the canvas element, which sets the Pointer.withinGame booleans accordingly. It also triggers the Mouse.mouseOutCallback and Mouse.mouseOverCallback callbacks respectively.
* The MSPointer event listeners have been renamed to all lower-case, i.e. 'pointerDown' is now 'pointerdown'.
2015-08-20 12:47:50 +01:00
photonstorm
55a7699381
Setting a P2.Body from Static or Kinematic to Dynamic will now automatically adjust the Body.mass to be 1 (thanks @wayfu #2005 )
2015-08-20 11:19:30 +01:00
Richard Davey
994a7dae73
jsdoc fix #2013
2015-08-19 22:19:55 +01:00
photonstorm
103c37cd42
BitmapData.drawFull draws the given Game Object or Group to a BitmapData and then recursively iterates through all of its children, including children of Game Objects and Groups. It can draw Text, BitmapText, Sprites, Images, Emitters and Graphics objects. It's perfectly valid to pass in game.world
as the parent object, and it will iterate through the entire display list.
2015-08-19 14:19:26 +01:00
photonstorm
176289f514
Video.stop now removes the 'playing' event listener, which stop Videos set to loop from throwing errors after being destroyed.
2015-08-18 16:04:10 +01:00
photonstorm
b1a05a6f52
BitmapText.font failed to pull the new font from the Phaser Cache, stopping it from updating properly (thanks @AbrahamAlcaina #2001 )
2015-08-18 13:48:08 +01:00
Richard Davey
4c55dddba6
Merge pull request #1998 from cloakedninjas/dev
...
Adding missing event handlers in Typescript definitions
2015-08-18 15:17:49 +03:00
Richard Davey
4b4ba34c58
Merge pull request #1999 from qdrj/dev
...
Fix JS doc and typescript definitions for cache.getRenderTexture
2015-08-18 15:04:38 +03:00
photonstorm
ac77bb8e46
Fixed download links.
2015-08-18 12:40:24 +01:00
Vladislav Forsh
c418ccb0b2
Fix 'unable to locate jsdoc' error while building docs.
2015-08-11 21:46:55 +03:00
Vladislav Forsh
a177c332e6
Remove trailing comma.
2015-08-11 21:42:24 +03:00
Vladislav Forsh
888f88ece8
Fixed js doc for cache.getRenderTexture
2015-08-11 20:31:31 +03:00
Vladislav Forsh
6b6c58230b
Fixed typescript definitions. cache.getRenderTexture() actually returns not just texture but Object with texture and frame.
2015-08-11 20:29:10 +03:00
cloakedninjas
6d9240b176
Adding missing event handlers in Typescript definitions
2015-08-11 15:56:56 +01:00
Richard Davey
19584b78a3
Readme update.
2015-08-07 02:56:44 +01:00
Richard Davey
7fbeb1c062
BitmapData.line draws a line to the BitmapData in the color and thickness specified.
...
Lots of BitmapData updates to use local vars and 'op' property, cutting down code size.
2015-08-07 02:48:00 +01:00
Richard Davey
fc8bff7b9e
jshint fix.
2015-08-07 01:41:59 +01:00
Richard Davey
7588e123c7
Line.centerOn will position the Line so that its midpoint lays on the coordinates given.
2015-08-07 01:40:37 +01:00
Richard Davey
614b84e2ea
* Line.rotateAround allows you to rotate a Line around the given coordinates (in world space)
...
* Point.rotate uses a faster and simpler rotation function when no distance argument is specified.
* Line.rotate used a calculation method which resulted in the line growing (or shrinking) in length over time, the more it was rotated. The new method never changes the lines length.
2015-08-07 01:35:31 +01:00
Richard Davey
13e97532b8
Docs update.
2015-08-06 23:36:50 +01:00
photonstorm
8e7b717a50
Line.midPoint will return a Point object where the x and y values correspond to the center (or midpoint) of the Line segment.
2015-08-06 17:10:39 +01:00
Richard Davey
62c87052cb
Merge pull request #1985 from yahiko00/master
...
Extra documentation and TypeScript definition file update
2015-08-06 14:20:26 +01:00
Richard Davey
534f6ff573
Merge pull request #1984 from Cowa/patch-2
...
Fix typo in Signal documentation
2015-08-06 14:18:10 +01:00
Yahiko Uzumaki
0416c6a9ee
Update BitmapData.js
...
Fix explanation.
2015-08-06 13:57:43 +02:00
yahiko
d412431947
Add extra information for the imageData property.
2015-08-06 13:49:51 +02:00
Brice Thomas
ef536d276a
doc(Signal): fix typo
2015-08-06 13:34:14 +02:00
Richard Davey
16373fecca
Merge pull request #1966 from clark-stevenson/dev
...
Micro Definition Update + Readme.
2015-08-06 12:26:16 +01:00
yahiko
aaeb45e8fe
- Update Phaser.Cache.addImage() signature
...
- Update Phaser.Cache.getImage() signature
- Add Phaser.CachedImage interface
2015-08-06 13:08:53 +02:00
yahiko
3fd35d0ec1
Add extra information for the imageData property.
2015-08-06 12:40:16 +02:00
photonstorm
9a0b6c24a4
Text can now accept undefined
or null
as the text
argument in the constructor and will cast it as an empty string.
2015-08-06 10:28:49 +01:00
Richard Davey
80540ea919
Added 'clear' argument to RenderTexture.render, which resolves the image build-up problem for cacheAsBitmap ( #1925 )
2015-08-06 01:01:58 +01:00
Richard Davey
7fc23c9abe
Text.setTextBounds didn't add the x and y values to the width and height offsets.
2015-08-04 23:06:07 +01:00
photonstorm
1fed360659
VideoStream.active = false is used if the browser supports it, otherwise it falls back to VideoStream.stop.
2015-08-04 15:48:43 +01:00
photonstorm
b365ebf570
jshint fix.
2015-08-03 16:45:03 +01:00
photonstorm
f4a1f11429
PIXI.CanvasPool is a new static global created to deal with the issue of resource leaks and continuous DOM node build-up when creating lots of Text or BitmapData objects, or when calling generateTexture
on any display object. The CanvasPool will do its best to re-use out dated canvas elements rather than filling up the DOM with new ones.
...
Sprite.setTexture has a new `destroyBase` parameter - set this to `true` if you know the base used a generated texture that isn't being used by any other sprites. This will free-up the canvas for further re-use by other calls to generateTexture or Text objects.
2015-08-03 16:09:16 +01:00
photonstorm
e901fb80f6
Merging in the CanvasPool changes to the core.
2015-08-03 14:46:55 +01:00
photonstorm
50516e3d34
Testing CanvasPool.
2015-08-03 14:33:12 +01:00
photonstorm
0493e19b8b
Group.cacheAsBitmap would be incorrectly offset in Canvas mode (thanks @mkristo #1925 )
2015-08-03 12:03:20 +01:00
photonstorm
4e857f19f6
BitmapText with tints applied wouldn't update properly in Canvas mode (thanks @Pajamaman #1969 )
2015-08-03 11:51:04 +01:00
photonstorm
1102299173
readme update
2015-08-03 11:44:25 +01:00