Asset prog

This commit is contained in:
2025-08-25 10:16:55 -05:00
parent 947f21cac7
commit 8af2f044ed
23 changed files with 290 additions and 31 deletions

View File

@@ -1,4 +1,5 @@
from processtileset import processTileset
from processimage import processPalette, processImage
processedAssets = []
@@ -10,5 +11,9 @@ def processAsset(assetPath):
# Handle tiled tilesets
if assetPath.endswith('.tsx'):
processTileset(assetPath)
return
return processTileset(assetPath)
elif assetPath.endswith('.png'):
if assetPath.endswith('.palette.png'):
return processPalette(assetPath)
else:
return processImage(assetPath)