diff --git a/public/assets/tileset.js b/public/assets/sprite.js similarity index 91% rename from public/assets/tileset.js rename to public/assets/sprite.js index 7803b40..56a6a54 100755 --- a/public/assets/tileset.js +++ b/public/assets/sprite.js @@ -6,8 +6,8 @@ import {basename, dirname, extname, join} from 'node:path'; import imageSize from 'image-size'; const tileset = process.argv[2]; -let w = parseInt(process.argv[3]); -let h = parseInt(process.argv[4]); +let w = parseInt(process.argv[3] || '0'); +let h = parseInt(process.argv[4] || '0'); const {width, height} = imageSize(tileset);