wires are now separated from blocks

This commit is contained in:
minjaesong
2021-07-28 16:10:03 +09:00
parent 5aacbe84b8
commit 29f6034fdc
17 changed files with 12 additions and 10 deletions

View File

@@ -223,11 +223,9 @@ object ModMgr {
object GameBlockLoader {
val blockPath = "blocks/"
@JvmStatic operator fun invoke(module: String) {
BlockCodex(module, blockPath + "blocks.csv")
WireCodex(module, blockPath + "wires.csv")
BlockCodex(module, "blocks/blocks.csv")
WireCodex(module, "wires/wires.csv")
}
}

View File

@@ -103,7 +103,7 @@ internal object BlocksDrawer {
)
//TODO make wire work with the TileAtlas system
tilesWire = TextureRegionPack(ModMgr.getGdxFile("basegame", "blocks/wire.tga"), TILE_SIZE, TILE_SIZE)
tilesWire = TextureRegionPack(ModMgr.getGdxFile("basegame", "wires/wire.tga"), TILE_SIZE, TILE_SIZE)
tilesFluid = TextureRegionPack(Texture(AppLoader.tileMaker.atlasFluid), TILE_SIZE, TILE_SIZE)
tilesGlow = TextureRegionPack(Texture(AppLoader.tileMaker.atlasGlow), TILE_SIZE, TILE_SIZE)