UNPKG
raingame
Version:
latest (1.0.0)
1.0.0
2D game framework
github.com/awayel/Rain
awayel/Rain
raingame
/
src
/
Position.ts
14 lines
(13 loc)
•
243 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class
Position
{
x
:
number
;
y
:
number
;
constructor
(
x =
0
, y =
0
) {
this
.
x
= x;
this
.
y
= y; }
set
(
x
:
number
,
y
:
number
) {
this
.
x
= x;
this
.
y
= y; } }
export
default
Position
;