TileSheet.new: You can now specify the resolution of the tile that is on the canvas

This commit is contained in:
Van
2025-10-20 18:18:26 +03:00
parent cf88ccf67f
commit 3b8aed464d
3 changed files with 71 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ local defaultRock = Core.Node.Class:getExtended(defaultRockDef)
local rockFactory = defaultRock:getFactory()
---@type TileSheet
local ts = Core.TileSheet:getModClassInstance("rocks_sheet.png", 7, 15)
local ts = Core.TileSheet:getModClassInstance("rocks_sheet.png", 16, 16)
rockFactory:registerNodesByShortDef({
{"sylite", "Sylite", nil, {ts:t(0, 0)}},