Tileset loads from jar now

This commit is contained in:
nelle 2023-11-04 23:46:42 -06:00
parent 737aee0594
commit 3e98587a06

View file

@ -11,9 +11,7 @@ import org.hexworks.zircon.api.data.Size3D
object GameConfig { object GameConfig {
// look & feel // 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.loadTilesetFromJar(16, 16, "/assets/tilesets/potrogue_grunge_16x16.png")
//var TILESET = CP437TilesetResources.loadTilesetFromFilesystem(16, 16, "./run/tiles/cp437/potrogue_grunge_16x16.png")
var TILESET = CP437TilesetResources.rogueYun16x16()
val WORLD_SIZE = Size3D.create(Config().windowWidth * 3, Config().windowHeight * 3 , Config().dungeonLevels) val WORLD_SIZE = Size3D.create(Config().windowWidth * 3, Config().windowHeight * 3 , Config().dungeonLevels)
val GAME_AREA_SIZE = Size3D.create( val GAME_AREA_SIZE = Size3D.create(