mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Group.destroy now removes any set filters (thanks @Jmaharman fix #844)
This commit is contained in:
parent
157103e4e5
commit
86c228d380
3 changed files with 3 additions and 0 deletions
|
@ -48,12 +48,14 @@ Version 2.0.6 - "Jornhill" - -in development-
|
|||
|
||||
### Updates
|
||||
|
||||
* TypeScript definitions fixes and updates (thanks @clark-stevenson)
|
||||
* BitmapData.draw can now also take a Phaser.Sprite, Phaser.Image or BitmapData object as a source type. As a result BitmapData.drawSprite is now depcreated.
|
||||
* BitmapData.alphaMask can now also take a Phaser.Sprite, Phaser.Image or BitmapData object as a source type.
|
||||
* BitmapData.alphaMask has 2 new optional parameters: sourceRect and maskRect to give more fine-grained control over where the source and mask are drawn and their size
|
||||
* BitmapData.alphaMask 'mask' parameter is now optional, if not given it will use itself as the mask.
|
||||
* BitmapData.alphaMask now calls BitmapData.update after running.
|
||||
* BitmapData.draw now has two optional parameters: width and height, to let you stretch the image being drawn if needed.
|
||||
* Group.destroy now removes any set filters (thanks @Jmaharman fix #844)
|
||||
|
||||
### New Features
|
||||
|
||||
|
|
BIN
resources/Screen Shots/phaser-demoscene.png
Normal file
BIN
resources/Screen Shots/phaser-demoscene.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
|
@ -1624,6 +1624,7 @@ Phaser.Group.prototype.destroy = function (destroyChildren, soft) {
|
|||
this.removeAll(destroyChildren);
|
||||
|
||||
this.cursor = null;
|
||||
this.filters = null;
|
||||
|
||||
if (!soft)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue