mirror of
https://github.com/wassname/phaser.git
synced 2026-08-19 12:30:07 +08:00
Tidying up and trying to fix more stupid TypeScript errors.
This commit is contained in:
@@ -64,6 +64,8 @@ module Phaser {
|
||||
|
||||
this.transform.setCache();
|
||||
|
||||
//this.body = new Phaser.Physics.Body(this, 0);
|
||||
|
||||
this.outOfBounds = false;
|
||||
this.outOfBoundsAction = Phaser.Types.OUT_OF_BOUNDS_PERSIST;
|
||||
|
||||
@@ -126,12 +128,6 @@ module Phaser {
|
||||
*/
|
||||
public outOfBoundsAction: number;
|
||||
|
||||
/**
|
||||
* Sprite physics body.
|
||||
*/
|
||||
//public body: Phaser.Physics.Body = null;
|
||||
public body;
|
||||
|
||||
/**
|
||||
* The texture used to render the Sprite.
|
||||
*/
|
||||
@@ -152,6 +148,12 @@ module Phaser {
|
||||
*/
|
||||
public events: Phaser.Components.Events;
|
||||
|
||||
/**
|
||||
* The Physics Body
|
||||
*/
|
||||
//public body: Phaser.Physics.Body;
|
||||
public body;
|
||||
|
||||
/**
|
||||
* This manages animations of the sprite. You can modify animations through it. (see AnimationManager)
|
||||
* @type AnimationManager
|
||||
|
||||
Reference in New Issue
Block a user