Skip to content

Commit

Permalink
feat: Support TMX relative path for Source texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-René Lavoie committed Oct 11, 2023
1 parent 76cdf21 commit 4a6d32c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ class TilesetLoader(private val map: TiledMap, private val mapURL: URL) {
val image = try {
val ext = mapURL.toExternalForm().substringBeforeLast("/") + "/"

val stream = URL(ext + imageName).openStream()
val stream = URL(ext + tilesetImageName).openStream()

var img = if (transparentcolor.isEmpty())
Image(stream)
Expand Down

0 comments on commit 4a6d32c

Please sign in to comment.