mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Making path of resources relative
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user