mirror of
https://github.com/wassname/phaser.git
synced 2026-07-15 01:11:26 +08:00
ScrollZone back in under the new renderer with new demos
This commit is contained in:
@@ -45,9 +45,6 @@ module Phaser {
|
||||
this.animations = new Phaser.Components.AnimationManager(this);
|
||||
this.texture = new Phaser.Components.Texture(this, key);
|
||||
|
||||
this.width = this.frameBounds.width;
|
||||
this.height = this.frameBounds.height;
|
||||
|
||||
// Transform related (if we add any more then move to a component)
|
||||
this.origin = new Phaser.Vec2(0, 0);
|
||||
this.scale = new Phaser.Vec2(1, 1);
|
||||
@@ -99,10 +96,6 @@ module Phaser {
|
||||
*/
|
||||
public alive: bool;
|
||||
|
||||
// Getters only, don't over-write these values
|
||||
public width: number;
|
||||
public height: number;
|
||||
|
||||
/**
|
||||
* Sprite physics.
|
||||
*/
|
||||
@@ -217,6 +210,22 @@ module Phaser {
|
||||
return this.animations.frameName;
|
||||
}
|
||||
|
||||
public set width(value: number) {
|
||||
this.frameBounds.width = value;
|
||||
}
|
||||
|
||||
public get width(): number {
|
||||
return this.frameBounds.width;
|
||||
}
|
||||
|
||||
public set height(value: number) {
|
||||
this.frameBounds.height = value;
|
||||
}
|
||||
|
||||
public get height(): number {
|
||||
return this.frameBounds.height;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pre-update is called right before update() on each object in the game loop.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user