@koreez/phaser3-isometric-plugin
Version:
Phaser3 isometirc plugin
97 lines • 3.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var IsoObject_1 = require("./IsoObject");
var IsoSprite = (function (_super) {
tslib_1.__extends(IsoSprite, _super);
function IsoSprite(scene, x, y, z, key, frame) {
var _this = _super.call(this, scene, x, y, key, frame) || this;
_this.setIsoX = function (value) {
_this.isoX = value;
return _this;
};
_this.setIsoY = function (value) {
_this.isoY = value;
return _this;
};
_this.setIsoZ = function (value) {
_this.isoZ = value;
return _this;
};
_this.__isoGameObject = new IsoObject_1.IsoObject(scene.isoProjector, _this, x, y, z);
return _this;
}
Object.defineProperty(IsoSprite.prototype, "isoX", {
get: function () {
return this.__isoGameObject.isoX;
},
set: function (value) {
this.__isoGameObject.isoX = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoSprite.prototype, "isoY", {
get: function () {
return this.__isoGameObject.isoY;
},
set: function (value) {
this.__isoGameObject.isoY = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoSprite.prototype, "isoZ", {
get: function () {
return this.__isoGameObject.isoZ;
},
set: function (value) {
this.__isoGameObject.isoZ = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoSprite.prototype, "isoPosition", {
get: function () {
return this.__isoGameObject.isoPosition;
},
set: function (value) {
this.__isoGameObject.isoPosition = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoSprite.prototype, "isoBounds", {
get: function () {
return this.__isoGameObject.isoBounds;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoSprite.prototype, "snap", {
get: function () {
return this.__isoGameObject.snap;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoSprite.prototype, "projector", {
get: function () {
return this.__isoGameObject.projector;
},
enumerable: true,
configurable: true
});
IsoSprite.prototype.set2DPosition = function (x, y) {
this.__isoGameObject.set2DPosition(x, y);
return this;
};
IsoSprite.prototype.setIsoPosition = function (point3) {
this.__isoGameObject.setIsoPosition(point3);
return this;
};
IsoSprite.ISO_SPRITE = 'isoSprite';
return IsoSprite;
}(Phaser.GameObjects.Sprite));
exports.IsoSprite = IsoSprite;
//# sourceMappingURL=IsoSprite.js.map