Added a script to compile the assets
This commit is contained in:
parent
082491c168
commit
11cf183839
23
compile_assets.py
Executable file
23
compile_assets.py
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
asset_path = "Assets/ofb-assets"
|
||||
|
||||
for root, dirs, files in os.walk(asset_path):
|
||||
for file in files:
|
||||
if file.endswith("aseprite"):
|
||||
new_file = file.rstrip("aseprite") + "png"
|
||||
print(f"Compiling {root}/{file} to {root}/{new_file}")
|
||||
subprocess.run(
|
||||
[
|
||||
"aseprite",
|
||||
f"{root}/{file}",
|
||||
"-b",
|
||||
"--sheet",
|
||||
f"{root}/{new_file}",
|
||||
"--sheet-type",
|
||||
"horizontal",
|
||||
]
|
||||
)
|
Loading…
Reference in New Issue
Block a user