Richard Davey
440e2afe7c
* PIXI.CanvasPool no longer _just_ checks for null
parent comparisons. It will check for all falsey parents, helping free-up canvases when the parent objects have been removed elsewhere.
...
* PIXI.CanvasPool.remove and `removeByCanvas` both now set the removed canvas width and height to 1.
2016-07-06 21:47:05 +01:00
Richard Davey
886c641ddc
* The default image texture, for when none is supplied, is now available under Phaser.Cache.DEFAULT
.
...
* The missing image texture, for when an image has failed to load, is now available under `Phaser.Cache.MISSING`.
* Phaser.Cache.addImage will now check the key given, and if `__default` or `__missing` it will update the new consts `Phaser.Cache.DEFAULT` and `Phaser.Cache.MISSING` accordingly, allowing you to replace the default or missing image textures used by Phaser.
* Phaser.Cache.getPixiTexture has now been removed, as the Pixi Cache isn't used internally anywhere any longer.
* Phaser.Cache.getPixiBaseTexture has now been removed, as the Pixi Cache isn't used internally anywhere any longer.
2016-07-06 21:46:40 +01:00
Richard Davey
8a3c71f050
CanvasPool parent checks are now falsey, not just !== null.
2016-07-06 20:59:42 +01:00
Richard Davey
33150018ad
Text.fontPropertiesCanvas no longer uses a CanvasPool entry.
2016-07-06 20:59:28 +01:00
Richard Davey
3642ff0489
Phaser.Color.toABGR converts RGBA components to a 32 bit integer in AABBGGRR format.
2016-07-04 18:50:42 +01:00
photonstorm
e08e0861d0
Phaser.ArrayUtils.rotate is now deprecated. Please use Phaser.ArrayUtils.rotateLeft instead.
2016-07-04 13:09:36 +01:00
photonstorm
0036bf747f
BitmapData has a new, optional, fifth argument: skipPool
. By default BitmapData objects will ask for the first free canvas found in the CanvasPool, but this behavior can now be customized on a per object basis.
2016-07-04 12:57:08 +01:00
photonstorm
cb0861d881
The canvas created by Phaser.Debug for use when displaying debug data is no longer stored in the CanvasPool, and is instead a stand-alone canvas, free from ever being re-used by another game object.
2016-07-04 12:56:52 +01:00
photonstorm
7ebae00c8f
Phaser 2.5.1 RC1
2016-07-01 16:57:36 +01:00
photonstorm
32bec66031
Docs update.
2016-06-29 16:18:54 +01:00
photonstorm
4066a8d8d8
All Pixi.Graphics methods that change the Graphics, i.e. drawShape
, lineTo
, arc
, etc will now all automatically call Graphics.updateLocalBounds
. This is so that the bounds of the Graphics object are kept updated, allowing you to scale and rotate the Graphics object and still obtain correct dimensions from it (thanks @kelu-smiley #2573 )
2016-06-29 16:18:54 +01:00
Richard Davey
c0c0e8cfc1
Merge pull request #2599 from monagames/typings-npm-entry
...
Typings entry in package.json
2016-06-29 15:17:08 +01:00
Richard Davey
fdcbb9229b
Phaser.ArrayUtils.shift is the opposite of ArrayUtils.rotate. It takes an array, removes the element from the end of the array, and inserts it at the start, shifting everything else 1 space in the process.
2016-06-29 02:08:42 +01:00
Richard Davey
1f570b49e8
Phaser.Utils.pad now calls toString
on the input given, which means you can pass in common data typs such as numbers and have them padded and returned as strings.
2016-06-29 00:04:22 +01:00
monagames
82bfec21df
Typings entry in package.json
2016-06-28 20:16:08 +02:00
Richard Davey
416c545d21
Removed old Phaser build and updated index.html.
2016-06-28 00:22:28 +01:00
Richard Davey
fbd1ba05f7
Phaser.Utils.reverseString will take the given string, reverse it, and then return it.
2016-06-27 22:43:53 +01:00
Richard Davey
a0c771d47e
Text.setText has a new optional argument immediate
which will re-create the texture immediately upon call, rather than wait for the next render pass to do so (thanks @Scraft #2594 )
2016-06-27 22:42:01 +01:00
photonstorm
b24de1e561
Polygon.contains would only work with non-flattened Polygon objects. It now works with both flat and non-flat Polygons.
...
Graphics objects enabled for input would fail to do anything if a Phaser Polygon was given to the Graphics object (which it was in nearly all cases), as it wouldn't detect input correctly with flattened polygons (thanks @symbiane #2591 )
2016-06-27 14:51:25 +01:00
Richard Davey
21ad151513
Merge pull request #2593 from monagames/ts-color-definitions
...
Improved typescript definitions
2016-06-25 16:52:14 +01:00
monagames
d5661264d4
Improved typescript definitions
2016-06-25 17:22:56 +02:00
Richard Davey
8c5cea066a
Updated docs.
2016-06-23 00:45:24 +01:00
Richard Davey
e050c39357
Gamedevs do it in the render method.
2016-06-22 19:30:30 +01:00
Richard Davey
7a12cffc61
Merge pull request #2588 from LoneStranger/dev-a
...
Group.getClosestTo() comparator wrong direction
2016-06-22 10:25:50 +01:00
Mike Headley
fca0a625b0
Distance comparison opposite of intended. Fixing so it will save the smaller distance instead of the greater.
2016-06-21 22:20:27 -07:00
Richard Davey
5e38f83627
Docs update.
2016-06-21 22:21:40 +01:00
Richard Davey
80f12ec074
Merge pull request #2571 from uboot/dev
...
Fixed Animation.setFrame() for sprite index argument
2016-06-21 22:20:24 +01:00
Richard Davey
2bd4f68ea0
Small tweaks to #2577 and TS defs.
2016-06-21 22:18:09 +01:00
Richard Davey
8cde880d98
Merge pull request #2577 from LoneStranger/dev
...
Modifed Group.getClosestTo() and Group.getFurthestFrom() to add optional filter callback
2016-06-21 22:07:13 +01:00
Richard Davey
2f98058db0
Merge pull request #2576 from monagames/typings_support
...
Typings.json file to enable deployment of typescript definitions with typings
2016-06-21 22:05:15 +01:00
Richard Davey
f3ad741614
Merge pull request #2580 from monagames/ts-emitter-missing-prop
...
Added missing property (particleAnchor) to emitter typescript definitions
2016-06-21 22:04:02 +01:00
Richard Davey
50434375a1
Tidy up formatting for #2585
2016-06-21 22:00:59 +01:00
Richard Davey
495cbb7c14
Merge pull request #2585 from stoneman1/dev
...
Added file type mappings to accept headers.
2016-06-21 21:56:36 +01:00
Richard Davey
b76c8397db
Merge pull request #2583 from cryptographer/dev
...
Remove assignment to obsolete tileColor property
2016-06-21 21:53:21 +01:00
Stoneman1
4861df4b66
Added file type mappings to accept headers.
2016-06-21 18:05:56 +03:00
cryptographer
9fdbb2d25d
Remove assignment to obsolete tileColor property
2016-06-20 22:29:05 -04:00
Mike Headley
48616c8854
Replacing lost Group.getClosestTo documentation lines.
2016-06-20 14:26:30 -07:00
Mike Headley
2e91588f87
Refactored original getClosestTo and getFurthestFrom functions to include optional filter callback. Removed the getClosestToFilter and getFurthestFromFilter.
2016-06-20 14:07:12 -07:00
monagames
b70eeeb3b1
Missing property in emitter type definitions
2016-06-20 21:35:28 +02:00
monagames
7b92abe5d5
Added information on using typings in typescript/readme.md
2016-06-20 17:43:36 +02:00
photonstorm
e39cd584bf
The start of the PIXI re-documentation process. Time to remove the old YUIdoc syntax, and replace with JSDoc and more meaningful descriptions.
2016-06-20 15:50:51 +01:00
Mike Headley
3ef8e5011b
Revert "Clarified health property in component Health documentation that 'kill' will be called if it goes below zero."
...
This reverts commit 18ae3b1ddb
.
2016-06-20 07:38:01 -07:00
photonstorm
d119ffa539
Removed PIXI.DisplayObject.prototype._renderWebGL
and PIXI.DisplayObject.prototype._renderCanvas
as both were only there for ancient jshint tests.
2016-06-20 14:10:21 +01:00
photonstorm
bd30181a2a
Docs update.
2016-06-20 12:18:39 +01:00
photonstorm
2310e5dc6f
Sound.volume was accidentally repeated twice in the source (thanks @LoneStranger #2569 )
2016-06-20 12:18:39 +01:00
Richard Davey
b0cb949b6c
Merge pull request #2564 from gotenxds/dev
...
Added some data to image object types.
2016-06-20 11:55:01 +01:00
Richard Davey
bc224c5af7
Merge pull request #2579 from drhayes/dev
...
Reorder Weapon.onFire argument order in documentation.
2016-06-20 11:35:21 +01:00
Mike Headley
18ae3b1ddb
Clarified health property in component Health documentation that 'kill' will be called if it goes below zero.
2016-06-19 22:36:27 -07:00
David Hayes
8f36b96c8a
Reorder Weapon.onFire argument order in documentation.
2016-06-19 20:39:51 -05:00
Mike Headley
ad0f31be8d
Added Group.getClosestToFilter() and Group.getFurthestFromFilter()
2016-06-19 10:45:35 -07:00