raingame
Version:
2D game framework
17 lines (16 loc) • 436 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Position = /** @class */ (function () {
function Position(x, y) {
if (x === void 0) { x = 0; }
if (y === void 0) { y = 0; }
this.x = x;
this.y = y;
}
Position.prototype.set = function (x, y) {
this.x = x;
this.y = y;
};
return Position;
}());
exports.default = Position;