You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
394 B
23 lines
394 B
import { fabric } from "fabric";
|
|
|
|
import Layer from "../board/layer";
|
|
import TileSet from "./tileset";
|
|
|
|
export default class TileMap extends Layer {
|
|
/**
|
|
* @param {TileSet} tileset
|
|
* @param {{chunkSiz:number}} opts
|
|
*/
|
|
constructor(tileset, opts = {}) {
|
|
super();
|
|
|
|
this.tileset = tileset;
|
|
|
|
this.opts = {
|
|
chunkSize: 8,
|
|
...opts,
|
|
}
|
|
|
|
this.rows = [];
|
|
}
|
|
}
|