Add interaction between edit grid and inventory

This commit is contained in:
asraelite 2018-03-05 16:11:58 +00:00
parent 469121e18a
commit 986c0479f1
9 changed files with 51 additions and 14 deletions

View file

@ -39,6 +39,10 @@ export class Rect {
return [this.x, this.y, this.w, this.h];
}
get end() {
return [this.x + this.w, this.y + this.h];
}
get center() {
return [this.x + this.w / 2, this.y + this.h / 2];
}