@tdurtschi/bug
Version:
Bug is a simulation that models a weevil walking around in an HTML canvas.
21 lines • 665 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var victor_1 = __importDefault(require("victor"));
var Wall = (function () {
function Wall(id, initialState) {
this.id = 0;
this.id = id ? id : 0;
Object.assign(this, {
pos: new victor_1.default(0, 0),
size: new victor_1.default(10, 50)
}, initialState);
}
Wall.prototype.update = function () {
};
return Wall;
}());
exports.default = Wall;
//# sourceMappingURL=wall.js.map