UNPKG

@erikyuzwa/rogue-punk

Version:

a JavaScript library to help you build your roguelike adventures

19 lines (18 loc) 264 B
export class Vector2d { constructor(x, y) { this.x = x; this.y = y; } get x() { return this.x; } set x(x) { this.x = x; } get y() { return this.y; } set y(y) { this.y = y; } }