Prog
Some checks failed
Build Dusk / build-linux (push) Successful in 2m24s
Build Dusk / build-psp (push) Failing after 2m16s

This commit is contained in:
2025-12-05 14:41:13 -06:00
parent 4e1b404820
commit a495179e5f
11 changed files with 226 additions and 58 deletions

View File

@@ -3,7 +3,7 @@ import os
from assetstool.args import args
from assetstool.assetcache import assetCache, assetGetCache
from assetstool.assethelpers import getAssetRelativePath
from dusk.defs import defs
from dusk.defs import fileDefs
def processScript(asset):
cache = assetGetCache(asset['path'])
@@ -16,6 +16,10 @@ def processScript(asset):
# TODO: I will precompile or minify the Lua code here in the future
# Replace all definitions in the code
for key, val in fileDefs.items():
luaCode = luaCode.replace(key, str(val))
# Create output Dusk Script File (DSF) data
data = ""
data += "DSF"

View File

@@ -1,4 +1,4 @@
from dotenv import load_dotenv
from dotenv import load_dotenv, dotenv_values
import os
import sys
@@ -13,6 +13,8 @@ if not os.path.isfile(duskDefsPath):
load_dotenv(dotenv_path=duskDefsPath)
defs = {key: os.getenv(key) for key in os.environ.keys()}
fileDefs = dotenv_values(dotenv_path=duskDefsPath)
# Parsed out definitions
CHUNK_WIDTH = int(defs.get('CHUNK_WIDTH'))
CHUNK_HEIGHT = int(defs.get('CHUNK_HEIGHT'))