mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Fixed issue with Pointer speed not resetting and moved some more render methods to the Debug class.
This commit is contained in:
@@ -134,7 +134,6 @@ module Phaser {
|
||||
return <Group> this._world.group.add(new Group(this._game, maxSize));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create a new Particle.
|
||||
*
|
||||
@@ -207,6 +206,17 @@ module Phaser {
|
||||
return this._world.group.add(sprite);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an existing Group to the current world.
|
||||
* Note: This doesn't check or update the objects reference to Game. If that is wrong, all kinds of things will break.
|
||||
*
|
||||
* @param group The Group to add to the Game World
|
||||
* @return {Phaser.Group} The Group object
|
||||
*/
|
||||
public existingGroup(group: Group): Group {
|
||||
return this._world.group.add(group);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an existing Button to the current world.
|
||||
* Note: This doesn't check or update the objects reference to Game. If that is wrong, all kinds of things will break.
|
||||
|
||||
@@ -237,6 +237,18 @@ module Phaser {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Brings this Sprite to the top of its current Group, if set.
|
||||
*/
|
||||
public bringToTop() {
|
||||
|
||||
if (this.group)
|
||||
{
|
||||
this.group.bringToTop(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* The scale of the Sprite. A value of 1 is original scale. 0.5 is half size. 2 is double the size.
|
||||
* This is a reference to Sprite.transform.scale
|
||||
|
||||
Reference in New Issue
Block a user