const fs=require('fs'),path=require('path'); const sharp=require('C:/Users/EDY/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/sharp'); const root=path.resolve(__dirname,'../..'); (async()=>{const dir=path.join(root,'Assets/BuffaloSiege/Art');const files=fs.readdirSync(dir).filter(n=>/^(avatar|prop|enemy)\..*\.png$/.test(n));const cells=[];for(let i=0;i${files[i]}`),left:x,top:y});}await sharp({create:{width:1100,height:Math.ceil(files.length/5)*240,channels:4,background:'#533e50'}}).composite(cells).png().toFile(path.join(__dirname,process.argv[2]||'before.png'));})();