wire is back! but not the render

This commit is contained in:
minjaesong
2021-07-28 14:19:50 +09:00
parent 8cb3fc2d33
commit 5aacbe84b8
21 changed files with 228 additions and 107 deletions

View File

@@ -16,6 +16,8 @@ import net.torvald.terrarum.worlddrawer.BlocksDrawer
import java.util.*
/**
* ItemCodex holds information of every item in the game, including blocks despite the 'item' naming
*
* Created by minjaesong on 2016-03-15.
*/
object ItemCodex {
@@ -94,7 +96,10 @@ object ItemCodex {
else if (itemID.startsWith("item@")) {
return itemCodex[itemID]?.itemImage
}
// TODO: wires
// wires
else if (itemID.startsWith("wire@")) {
return itemCodex[itemID]?.itemImage
}
// wall
else if (itemID.startsWith("wall@")) {
val itemSheetNumber = AppLoader.tileMaker.tileIDtoItemSheetNumber(itemID.substring(5))