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);
|
super(texture);
|
||||||
var src = xml.array[index];
|
var src = xml.array[index];
|
||||||
this.imgPos = { x: src["x"], y: src["y"] };
|
this.imgPos = { x: src["x"], y: src["y"] };
|
||||||
this.width = src["width"];
|
this.w = src["width"];
|
||||||
this.height = src["height"];
|
this.h = src["height"];
|
||||||
this.anims = new AnimManager(this);
|
this.anims = new AnimManager(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -16,11 +16,11 @@ class TileSpriteXML extends Sprite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get w() {
|
get w() {
|
||||||
return this.width * Math.abs(this.scale.x);
|
return this.w * Math.abs(this.scale.x);
|
||||||
}
|
}
|
||||||
|
|
||||||
get h() {
|
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