fix state thigns and port to love11
This commit is contained in:
parent
ff5abf6bcd
commit
c92c0f6ff7
11 changed files with 130 additions and 96 deletions
|
|
@ -34,7 +34,7 @@ function getAllAssets()
|
|||
-- class comes from a <name>.meta sitting next to the art
|
||||
-- (authoritative); default to immoveable if none exists
|
||||
local metaPath = topFolder .. "/" .. folder .. "/" .. name .. ".meta"
|
||||
if love.filesystem.exists(metaPath) then
|
||||
if love.filesystem.getInfo(metaPath, "file") then
|
||||
globalAssetProperties[name].class = TSerial.unpack(love.filesystem.read(metaPath)).class
|
||||
elseif not globalAssetProperties[name].class then
|
||||
globalAssetProperties[name].class = "immoveable"
|
||||
|
|
@ -45,7 +45,7 @@ function getAllAssets()
|
|||
|
||||
if not globalAssetProperties[name].cells or reanalyzeCells then
|
||||
globalAssetProperties[name].cells = {}
|
||||
globalAssetProperties[name].cells[color] = getCellsFromSprite(love.graphics.newImage(sprite))
|
||||
globalAssetProperties[name].cells[color] = getCellsFromSprite(sprite)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -54,4 +54,4 @@ function getAllAssets()
|
|||
end
|
||||
|
||||
return globalAssetProperties
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue