raingame
Version:
2D game framework
19 lines (18 loc) • 568 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var RainImage = /** @class */ (function () {
function RainImage(options) {
this.image = new Image();
if (options.onload) {
this.image.onload = options.onload;
}
this.src = options.src;
this.image.src = this.src;
this.start = options.start;
this.end = options.end;
this.width = options.width;
this.height = options.height;
}
return RainImage;
}());
exports.default = RainImage;