mirror of
https://github.com/wassname/phaser.git
synced 2026-07-04 17:20:31 +08:00
Updating and fixing tests
This commit is contained in:
@@ -161,6 +161,8 @@ module Phaser {
|
||||
|
||||
private onInputDownHandler(pointer:Phaser.Pointer) {
|
||||
|
||||
//console.log('Button onInputDownHandler: ' + Date.now());
|
||||
|
||||
if (this._onDownFrameName != null)
|
||||
{
|
||||
this.frameName = this._onDownFrameName;
|
||||
@@ -179,6 +181,8 @@ module Phaser {
|
||||
|
||||
private onInputUpHandler(pointer:Phaser.Pointer) {
|
||||
|
||||
//console.log('Button onInputUpHandler: ' + Date.now());
|
||||
|
||||
if (this._onUpFrameName != null)
|
||||
{
|
||||
this.frameName = this._onUpFrameName;
|
||||
|
||||
@@ -265,6 +265,13 @@ module Phaser {
|
||||
|
||||
}
|
||||
|
||||
public add(sprite: Sprite) {
|
||||
|
||||
sprite.texture.canvas = this.canvas;
|
||||
sprite.texture.context = this.context;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Given an array of Sprites it will update each of them so that their canvas/contexts reference this DynamicTexture
|
||||
* @param objects {Array} An array of GameObjects, or objects that inherit from it such as Sprites
|
||||
|
||||
@@ -139,7 +139,7 @@ module Phaser {
|
||||
|
||||
/**
|
||||
* The action to be taken when the sprite is fully out of the world bounds
|
||||
* Defaults to Phaser.Types.OUT_OF_BOUNDS_KILL
|
||||
* Defaults to Phaser.Types.OUT_OF_BOUNDS_PERSIST
|
||||
*/
|
||||
public outOfBoundsAction: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user