Real tileset support

This commit is contained in:
Ian Gulliver
2021-05-13 02:03:41 +00:00
parent 94bad7b7d4
commit 6cc4e620ee
41 changed files with 12753 additions and 70 deletions

View File

@@ -6,7 +6,7 @@ export class SimpleTileFactory extends AnimatableTileFactory {
this.name = name;
}
build(tileset) {
return new SimpleTile(this.width, this.height, `images/${tileset}/${this.name}.svg`, this.animations);
return new SimpleTile(this.width, this.height, `images/${this.name.replace('{tileset}', tileset)}.svg`, this.animations);
}
copy() {
const stf = new SimpleTileFactory(this.layer_name, this.width, this.height, this.name);