progress!

This commit is contained in:
dylan
2024-03-29 02:02:40 -07:00
parent 2721848afa
commit d4d436f34a
13 changed files with 178 additions and 4628 deletions

View File

@ -24,15 +24,15 @@ const execPico = async (args: string[]) => {
}
export const pico8 = {
async export(fileIn: string, fileOut: string) {
async export(filesIn: string[], fileOut: string) {
try {
// console.log((await cmd("ls", ["-la", "/app/pico8"]) as any).stdout)
return await execPico([fileIn, "-export", fileOut]);
return await execPico([...filesIn, "-export", fileOut]);
} catch (err) {
console.log("CAUGHT ERROR", err);
}
}
}
// const result = await pico8.export("/home/dylan/.lexaloffle/pico-8/carts/my-pico-project/mygame.p8", "/home/dylan/repos/picobook/sample.p8.png");
// const result = await pico8.export(["/home/dylan/.lexaloffle/pico-8/carts/my-pico-project/mygame.p8","/home/dylan/.lexaloffle/pico-8/carts/my-pico-project/secondcart.p8"], "/home/dylan/repos/picobook/sample2.js");
// console.log(result);