plants: add rye

This commit is contained in:
Van
2026-04-23 15:44:42 +03:00
parent 51394d1df6
commit 1b98571eae
2 changed files with 19 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ Plant:new({
},
})
local ts = TileSheet:new('plants_test_sheet.png', 16, 16)
local PlantsTileSheet = TileSheet:new('plants_test_sheet.png', 16, 16)
for i=0, 3 do
@@ -16,8 +16,25 @@ for i=0, 3 do
settings = {
name = 'plant'..tostring(i),
_title = 'Plant',
tiles = { ts:t(i,0) },
tiles = { PlantsTileSheet:t(i,0) },
place_param2 = 3,
},
})
end
Plant:new({
settings = {
name = 'rye',
tiles = {PlantsTileSheet:t(0,1)},
place_param2 = 3,
}
})
Plant:new({
settings = {
name = 'rye_small',
tiles = {PlantsTileSheet:t(0,2)},
place_param2 = 3,
}
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 36 KiB