From ca0487d40a2da49d8077eb90c8054a007d45d8cf Mon Sep 17 00:00:00 2001 From: Martijn van der Sande Date: Tue, 15 Sep 2015 15:38:47 +0200 Subject: [PATCH 1/2] isometric type bugfix --- src/Isometric.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Isometric.js b/src/Isometric.js index ba22a6b..52247be 100644 --- a/src/Isometric.js +++ b/src/Isometric.js @@ -41,11 +41,14 @@ * * @constructor * @param {Phaser.Game} game The current game instance. + * @param {number} isometricType - the isometric projection anglye to use. */ -Phaser.Plugin.Isometric = function (game, parent) { +Phaser.Plugin.Isometric = function (game, parent, isometricType) { + + isometricType = isometricType || Phaser.Plugin.Isometric.CLASSIC Phaser.Plugin.call(this, game, parent); - this.projector = new Phaser.Plugin.Isometric.Projector(this.game, Phaser.Plugin.Isometric.CLASSIC); + this.projector = new Phaser.Plugin.Isometric.Projector(this.game, isometricType); // Add an instance of Isometric.Projector to game.iso if it doesn't exist already this.game.iso = this.game.iso || this.projector; }; From 1bf1913005415e5ab051badd4c83e9c582088ee8 Mon Sep 17 00:00:00 2001 From: Martijn van de Sande Date: Wed, 16 Sep 2015 12:32:29 +0200 Subject: [PATCH 2/2] Update Isometric.js --- src/Isometric.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Isometric.js b/src/Isometric.js index 52247be..fa5a50e 100644 --- a/src/Isometric.js +++ b/src/Isometric.js @@ -41,11 +41,11 @@ * * @constructor * @param {Phaser.Game} game The current game instance. - * @param {number} isometricType - the isometric projection anglye to use. + * @param {number} isometricType - the isometric projection angle to use. */ Phaser.Plugin.Isometric = function (game, parent, isometricType) { - isometricType = isometricType || Phaser.Plugin.Isometric.CLASSIC + isometricType = isometricType || Phaser.Plugin.Isometric.CLASSIC; Phaser.Plugin.call(this, game, parent); this.projector = new Phaser.Plugin.Isometric.Projector(this.game, isometricType);