@spearwolf/twopoint5d
Version:
a library to create 2.5d realtime graphics and pixelart with three.js
13 lines • 368 B
JavaScript
import { AABB2 } from './AABB2.js';
export class Map2DTile {
static createID(x, y) {
return `y${y.toString(16)}${x < 0 ? '' : 'x'}${x.toString(16)}`;
}
constructor(x, y, view) {
this.id = Map2DTile.createID(x, y);
this.x = x;
this.y = y;
this.view = view ?? new AABB2();
}
}
//# sourceMappingURL=Map2DTile.js.map