From 3e98587a0681b9dc44129052761d52396bb66329 Mon Sep 17 00:00:00 2001 From: LimePotato Date: Sat, 4 Nov 2023 23:46:42 -0600 Subject: [PATCH] Tileset loads from jar now --- .../kotlin/group/ouroboros/potrogue/data/config/GameConfig.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/kotlin/group/ouroboros/potrogue/data/config/GameConfig.kt b/src/main/kotlin/group/ouroboros/potrogue/data/config/GameConfig.kt index bfe4741..0109799 100644 --- a/src/main/kotlin/group/ouroboros/potrogue/data/config/GameConfig.kt +++ b/src/main/kotlin/group/ouroboros/potrogue/data/config/GameConfig.kt @@ -11,9 +11,7 @@ import org.hexworks.zircon.api.data.Size3D object GameConfig { // look & feel - // TODO: Custom Tileset (As is, would need to be moved or downloaded into the run directory, maybe should just load from jar once we figure that out) - //var TILESET = CP437TilesetResources.loadTilesetFromFilesystem(16, 16, "./run/tiles/cp437/potrogue_grunge_16x16.png") - var TILESET = CP437TilesetResources.rogueYun16x16() + var TILESET = CP437TilesetResources.loadTilesetFromJar(16, 16, "/assets/tilesets/potrogue_grunge_16x16.png") val WORLD_SIZE = Size3D.create(Config().windowWidth * 3, Config().windowHeight * 3 , Config().dungeonLevels) val GAME_AREA_SIZE = Size3D.create(