@spibo-studio/spibo-studio
Version:
Spibo Studio is an HTML Canvas Library for creating adventure games
29 lines • 883 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var CanvasImage = /** @class */ (function () {
function CanvasImage(src, width, height) {
this.sprites = [];
this._image = width && height ? new Image(width, height) : new Image();
this._image.src = src;
}
Object.defineProperty(CanvasImage.prototype, "image", {
get: function () {
return this._image;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CanvasImage.prototype, "pos", {
get: function () {
return this.position;
},
set: function (position) {
this.position = position;
},
enumerable: false,
configurable: true
});
return CanvasImage;
}());
exports.default = CanvasImage;
//# sourceMappingURL=CanvasImage.js.map