Only compile png files, also add bgb testing

This commit is contained in:
2022-01-07 18:20:35 -08:00
parent 4ad29e981e
commit 36ad463505
2 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,8 @@
"license": "MIT",
"scripts": {
"clean": "node ./scripts/clean",
"build": "node ./scripts/build"
"build": "node ./scripts/build",
"start": "bgb64.exe ./build/Penny.gb"
},
"dependencies": {
"pngjs": "^6.0.0",

View File

@@ -90,6 +90,7 @@ Object.entries(GAME_STRINGS).forEach(entry => {
// Gen imagery
fs.readdirSync(DIR_IMAGES).forEach(img => {
if(!img.endsWith(".png")) return;
const { fileC, fileH } = png2gb(
path.join(DIR_IMAGES, img), DIR_GENERATED,
path.basename(img, '.png').toUpperCase()