UNPKG
@erikyuzwa/rogue-punk
Version:
latest (0.3.6)
0.3.6
0.3.5
0.3.0
0.2.0
a JavaScript library to help you build your roguelike adventures
@erikyuzwa/rogue-punk
/
dist-es
/
Vector2d.js
19 lines
(18 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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; } }