level editor improvements
This commit is contained in:
parent
886679816b
commit
a8b469876d
41 changed files with 8367 additions and 8312 deletions
|
|
@ -297,8 +297,10 @@ end
|
|||
|
||||
function saveAsset()
|
||||
gameAssets[selectedAsset] = assetProperties
|
||||
local save = TSerial.pack(gameAssets, nil, true)
|
||||
love.filesystem.write("assets.prop", save)
|
||||
-- the asset's class lives in its .meta next to the art (source of truth,
|
||||
-- read back by getAllAssets); write it there
|
||||
local metaPath = "art/" .. assetProperties.directory .. "/" .. selectedAsset .. ".meta"
|
||||
writeToSource(metaPath, TSerial.pack({ class = assetProperties.class }, nil, true))
|
||||
assetsView()
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue