Pack HGR title graphics into screen holes to save space (#434)

* Pack HGR title graphics into screen holes to save space

* Rename TITLE.HGR folder to TITLE.HGR.UNPACKED

* Add packed HGR files
This commit is contained in:
Tom Greene 2021-11-12 01:22:14 -05:00 committed by GitHub
parent 535b5b39ce
commit 854425b416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
766 changed files with 211 additions and 53 deletions

View File

@ -27,7 +27,7 @@ CADIUS=cadius
# version 3.1.0 or later
EXOMIZER=exomizer mem -q -P23 -lnone
dsk: asm index
dsk: asm index packedfiles
cp res/blank.hdv build/"$(DISK)"
cp res/_FileInformation.txt build/
$(CADIUS) ADDFILE build/"$(DISK)" "/$(VOLUME)/" build/LAUNCHER.SYSTEM >>build/log
@ -217,6 +217,10 @@ compress: md
for f in res/ACTION.DHGR.UNCOMPRESSED/*; do o=res/ACTION.DHGR/$$(basename $$f); [ -f "$$o" ] || ${EXOMIZER} "$$f"@0x4000 -o "$$o" >>build/log; done
for f in res/ARTWORK.SHR.UNCOMPRESSED/*; do o=res/ARTWORK.SHR/$$(basename $$f); [ -f "$$o" ] || ${EXOMIZER} "$$f"@0x2000 -o "$$o" >>build/log; done
packedfiles: md
for f in res/TITLE.HGR.UNPACKED/*; do o=res/TITLE.HGR/$$(basename $$f); [ -f "$$o" ] || bin/packhgrfile.py $$f $$o >>build/log; done
attract: compress
bin/check-attract-mode.sh
bin/generate-mini-attract-mode.sh

21
bin/packhgrfile.py Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env python3
import sys
infile = sys.argv[1]
outfile = sys.argv[2]
i = open(infile,"rb")
filedata = i.read()
i.close
outdata = bytearray(filedata[0:7680])
for h in range(60):
oh = h*128+120
ih = h*8+7680+(int(h/15)*8)
outdata[oh:oh+8] = filedata[ih:ih+8]
o = open(outfile,"wb")
o.write(outdata)
o.close

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
res/TITLE.HGR.UNPACKED/AA Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/AB Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/AC Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/AF Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/ANKH Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/AO Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/AS Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/B1 Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/B2 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BB Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BC Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BH Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BK Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BOA Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BOLO Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BORG Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BQ Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BR Normal file

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BT Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BU Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BW Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/BY Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CB Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CC Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CF Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CG Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CQ Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CR Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CS Normal file

Binary file not shown.

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CV Normal file

Binary file not shown.

BIN
res/TITLE.HGR.UNPACKED/CW Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More