forked from Apancore.Studio/simple-makes-complex
Add draft plants
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
local modInfo = Mod.getInfo('smc__core__plant')
|
||||
|
||||
---@type TileSheet
|
||||
local TileSheet = Mod.getInfo('smc__core__tilesheet').require('TileSheet')
|
||||
|
||||
---@type Plant
|
||||
local Plant = modInfo.require('Plant')
|
||||
|
||||
@@ -10,4 +13,18 @@ Plant:new({
|
||||
tiles = { "test_plant.png" },
|
||||
place_param2 = 3,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
local ts = TileSheet:new('plants_test_sheet.png', 16, 16)
|
||||
|
||||
|
||||
for i=0, 3 do
|
||||
Plant:new({
|
||||
settings = {
|
||||
name = 'plants:plant'..tostring(i),
|
||||
description = 'Plant',
|
||||
tiles = { ts:t(i,0) },
|
||||
place_param2 = 3,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
BIN
mods/GAME/ITEMS/plants/textures/sheets/plants_test_sheet.png
Normal file
BIN
mods/GAME/ITEMS/plants/textures/sheets/plants_test_sheet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user