Making path of resources relative

This commit is contained in:
Mal
2021-09-14 20:11:01 +02:00
parent 43f2290758
commit e75db5affd
3 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ export default class Tileset
{
this.setId = setId;
this.image = new Image();
this.image.src = Setting.TILESET_LOCATION + GraphicSet[this.setId].tileset;
this.image.src = '../' + Setting.TILESET_LOCATION + GraphicSet[this.setId].tileset;
this.tiles = GraphicSet[this.setId].tiles;
this.scale = GraphicSet[this.setId].scale;
}
@@ -31,4 +31,4 @@ export default class Tileset
{
return this.image.height * this.scale;
}
}
}