From b84c53b111c38075cc27f82c5196dfeac5ec0738 Mon Sep 17 00:00:00 2001 From: Arne van Iterson Date: Wed, 29 Apr 2020 13:49:05 +0200 Subject: [PATCH 1/2] Fixed class variable naming error in TileSpriteXML --- lib/TileSpriteXML.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/TileSpriteXML.js b/lib/TileSpriteXML.js index b2b0543..0caa1dc 100644 --- a/lib/TileSpriteXML.js +++ b/lib/TileSpriteXML.js @@ -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); } } From 56ed8b369e607090d9f3e030fe84e60908da84ec Mon Sep 17 00:00:00 2001 From: Arne van Iterson Date: Wed, 29 Apr 2020 13:49:59 +0200 Subject: [PATCH 2/2] 1.1.2 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 250b265..d7e0503 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "asdf-games", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index edb5626..476088e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asdf-games", - "version": "1.1.1", + "version": "1.1.2", "description": "Javascript gaming framework, based upon the framework made in the book HTML5 Games: Novice to Ninja by Sitepoint.", "main": "lib/index.js", "repository": {