add new items

efd/v1
Dominik Madarász 2022-10-18 09:32:25 +02:00
parent f99cbc8018
commit ee7ff6a6c3
4 changed files with 23 additions and 0 deletions

View File

@ -22,6 +22,12 @@ Texture2D texgen_build_sprite_fallback(asset_id id) {
// NOTE(zaklaus): items
case ASSET_COAL: return LoadTexEco("coal");
case ASSET_IRON_ORE: return LoadTexEco("iron_ore");
//case ASSET_IRON_INGOT: return LoadTexEco("iron_ingot");
case ASSET_IRON_PLATES: return LoadTexEco("iron_plate");
case ASSET_SCREWS: return LoadTexEco("screws");
case ASSET_LOG: return LoadTexEco("log");
case ASSET_PLANK: return LoadTexEco("plank");
// NOTE(zaklaus): blocks
case ASSET_FENCE: return LoadTexEco("fence");

View File

@ -27,6 +27,10 @@
X(ASSET_COAL)\
X(ASSET_IRON_ORE)\
X(ASSET_IRON_INGOT)\
X(ASSET_IRON_PLATES)\
X(ASSET_SCREWS)\
X(ASSET_LOG)\
X(ASSET_PLANK)\
X(ASSET_TEST_TALL)\
X(ASSET_BELT)\
X(ASSET_BELT_LEFT)\

View File

@ -16,6 +16,12 @@ static asset assets[] = {
ASSET_TEX(ASSET_BLOCK_FRAME),
ASSET_TEX(ASSET_BUILDMODE_HIGHLIGHT),
ASSET_TEX(ASSET_COAL),
ASSET_TEX(ASSET_IRON_ORE),
ASSET_TEX(ASSET_IRON_INGOT),
ASSET_TEX(ASSET_IRON_PLATES),
ASSET_TEX(ASSET_SCREWS),
ASSET_TEX(ASSET_LOG),
ASSET_TEX(ASSET_PLANK),
ASSET_TEX(ASSET_CHEST),
ASSET_TEX(ASSET_FURNACE),
ASSET_TEX(ASSET_CRAFTBENCH),

View File

@ -25,4 +25,11 @@ static item_desc items[] = {
ITEM_ENT(ASSET_CHEST, 32, ASSET_CHEST),
ITEM_ENT(ASSET_CRAFTBENCH, 32, ASSET_CRAFTBENCH),
ITEM_ENT(ASSET_FURNACE, 32, ASSET_FURNACE),
ITEM_HOLD(ASSET_IRON_ORE, 64),
ITEM_HOLD(ASSET_IRON_INGOT, 64),
ITEM_HOLD(ASSET_IRON_PLATES, 64),
ITEM_HOLD(ASSET_SCREWS, 64),
ITEM_HOLD(ASSET_LOG, 64),
ITEM_HOLD(ASSET_PLANK, 64),
};