Only compile png files, also add bgb testing
This commit is contained in:
@@ -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",
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user