Add draft plants

This commit is contained in:
Van
2025-12-30 19:10:46 +03:00
parent c0575e2c82
commit efeb5c75cd
3 changed files with 18 additions and 1 deletions

View File

@@ -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')
@@ -11,3 +14,17 @@ Plant:new({
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

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