forked from arne/asdf-games
Fixed class variable naming error in TileSpriteXML
This commit is contained in:
parent
8c5ab18f70
commit
b84c53b111
@ -6,8 +6,8 @@ class TileSpriteXML extends Sprite {
|
||||
super(texture);
|
||||
var src = xml.array[index];
|
||||
this.imgPos = { x: src["x"], y: src["y"] };
|
||||
this.width = src["width"];
|
||||
this.height = src["height"];
|
||||
this.w = src["width"];
|
||||
this.h = src["height"];
|
||||
this.anims = new AnimManager(this);
|
||||
}
|
||||
|
||||
@ -16,11 +16,11 @@ class TileSpriteXML extends Sprite {
|
||||
}
|
||||
|
||||
get w() {
|
||||
return this.width * Math.abs(this.scale.x);
|
||||
return this.w * Math.abs(this.scale.x);
|
||||
}
|
||||
|
||||
get h() {
|
||||
return this.height * Math.abs(this.scale.y);
|
||||
return this.h * Math.abs(this.scale.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user