mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
wires are now separated from blocks
This commit is contained in:
@@ -9,8 +9,9 @@ where Prefix is predefined (see below), Integer ID is arbitrarily chosen within
|
|||||||
### Prefixes
|
### Prefixes
|
||||||
|Name|Description|
|
|Name|Description|
|
||||||
|----|-----------|
|
|----|-----------|
|
||||||
|wall|Wall, only used by the Inventory to differentiate walls from blocks (therefore wall shares same "ID Space" with blocks/fluids/wires)|
|
|wall|Wall, only used by the Inventory to differentiate walls from blocks (therefore wall shares same "ID Space" with blocks)|
|
||||||
|item|Item (Static), uses different "ID Space" with blocks/walls/fluids/wires|
|
|item|Item (Static)|
|
||||||
|
|wire|Wires|
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
- BlockCodex and ItemCodex will not store prefix part of the ID, as blocks and walls are identical in properties
|
- BlockCodex and ItemCodex will not store prefix part of the ID, as blocks and walls are identical in properties
|
||||||
|
|||||||
Binary file not shown.
|
Can't render this file because it contains an unexpected character in line 5 and column 2.
|
@@ -223,11 +223,9 @@ object ModMgr {
|
|||||||
|
|
||||||
|
|
||||||
object GameBlockLoader {
|
object GameBlockLoader {
|
||||||
val blockPath = "blocks/"
|
|
||||||
|
|
||||||
@JvmStatic operator fun invoke(module: String) {
|
@JvmStatic operator fun invoke(module: String) {
|
||||||
BlockCodex(module, blockPath + "blocks.csv")
|
BlockCodex(module, "blocks/blocks.csv")
|
||||||
WireCodex(module, blockPath + "wires.csv")
|
WireCodex(module, "wires/wires.csv")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ internal object BlocksDrawer {
|
|||||||
)
|
)
|
||||||
|
|
||||||
//TODO make wire work with the TileAtlas system
|
//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)
|
tilesFluid = TextureRegionPack(Texture(AppLoader.tileMaker.atlasFluid), TILE_SIZE, TILE_SIZE)
|
||||||
tilesGlow = TextureRegionPack(Texture(AppLoader.tileMaker.atlasGlow), TILE_SIZE, TILE_SIZE)
|
tilesGlow = TextureRegionPack(Texture(AppLoader.tileMaker.atlasGlow), TILE_SIZE, TILE_SIZE)
|
||||||
|
|
||||||
|
|||||||
BIN
work_files/graphics/items/items.kra
LFS
Normal file
BIN
work_files/graphics/items/items.kra
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user