mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +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
|
||||
|Name|Description|
|
||||
|----|-----------|
|
||||
|wall|Wall, only used by the Inventory to differentiate walls from blocks (therefore wall shares same "ID Space" with blocks/fluids/wires)|
|
||||
|item|Item (Static), uses different "ID Space" with blocks/walls/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)|
|
||||
|wire|Wires|
|
||||
|
||||
Notes:
|
||||
- BlockCodex and ItemCodex will not store prefix part of the ID, as blocks and walls are identical in properties
|
||||
@@ -46,4 +47,4 @@ Actor range in-depth
|
||||
|0x6000_0000..0x6FFF_FFFF|Rendered front (e.g. fake tile)|
|
||||
|0x7000_0000..0x7FFF_FFFF|Rendered as screen overlay, not affected by light nor environment overlays|
|
||||
|
||||
Actor IDs are assigned in 256 groups, single actor can have 256 sub-actors
|
||||
Actor IDs are assigned in 256 groups, single actor can have 256 sub-actors
|
||||
|
||||
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 {
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
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