mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-27 12:30:30 +00:00
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:
parent
535b5b39ce
commit
854425b416
6
Makefile
6
Makefile
@ -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
21
bin/packhgrfile.py
Executable 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
|
||||
|
BIN
res/TITLE.HGR.UNPACKED/A.CITY.DIES
Normal file
BIN
res/TITLE.HGR.UNPACKED/A.CITY.DIES
Normal file
Binary file not shown.
1
res/TITLE.HGR.UNPACKED/A.E
Normal file
1
res/TITLE.HGR.UNPACKED/A.E
Normal file
File diff suppressed because one or more lines are too long
BIN
res/TITLE.HGR.UNPACKED/AA
Normal file
BIN
res/TITLE.HGR.UNPACKED/AA
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AB
Normal file
BIN
res/TITLE.HGR.UNPACKED/AB
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AC
Normal file
BIN
res/TITLE.HGR.UNPACKED/AC
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AF
Normal file
BIN
res/TITLE.HGR.UNPACKED/AF
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AGENT.U.S.A
Normal file
BIN
res/TITLE.HGR.UNPACKED/AGENT.U.S.A
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ALCAZAR
Normal file
BIN
res/TITLE.HGR.UNPACKED/ALCAZAR
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ALIEN.AMBUSH
Normal file
BIN
res/TITLE.HGR.UNPACKED/ALIEN.AMBUSH
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ALIEN.DOWNPOUR
Normal file
BIN
res/TITLE.HGR.UNPACKED/ALIEN.DOWNPOUR
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ALIEN.LANDER
Normal file
BIN
res/TITLE.HGR.UNPACKED/ALIEN.LANDER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ALIEN.MUNCHIES
Normal file
BIN
res/TITLE.HGR.UNPACKED/ALIEN.MUNCHIES
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ALIEN.TYPHOON
Normal file
BIN
res/TITLE.HGR.UNPACKED/ALIEN.TYPHOON
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ANKH
Normal file
BIN
res/TITLE.HGR.UNPACKED/ANKH
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AO
Normal file
BIN
res/TITLE.HGR.UNPACKED/AO
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/APE.ESCAPE
Normal file
BIN
res/TITLE.HGR.UNPACKED/APE.ESCAPE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/APPLE.INVADER
Normal file
BIN
res/TITLE.HGR.UNPACKED/APPLE.INVADER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/APPLE.PANIC
Normal file
BIN
res/TITLE.HGR.UNPACKED/APPLE.PANIC
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AQUATRON
Normal file
BIN
res/TITLE.HGR.UNPACKED/AQUATRON
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARCHON
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARCHON
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARCHON.II
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARCHON.II
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARCTIC.FOX
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARCTIC.FOX
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARENA
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARENA
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARGOS
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARGOS
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARKANOID
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARKANOID
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/ARTESIANS
Normal file
BIN
res/TITLE.HGR.UNPACKED/ARTESIANS
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AS
Normal file
BIN
res/TITLE.HGR.UNPACKED/AS
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AXIS.ASSASSIN
Normal file
BIN
res/TITLE.HGR.UNPACKED/AXIS.ASSASSIN
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/AZTEC
Normal file
BIN
res/TITLE.HGR.UNPACKED/AZTEC
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/B1
Normal file
BIN
res/TITLE.HGR.UNPACKED/B1
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/B2
Normal file
BIN
res/TITLE.HGR.UNPACKED/B2
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BALLBLAZER
Normal file
BIN
res/TITLE.HGR.UNPACKED/BALLBLAZER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BANDITS
Normal file
BIN
res/TITLE.HGR.UNPACKED/BANDITS
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BATTLE.CRUISER
Normal file
BIN
res/TITLE.HGR.UNPACKED/BATTLE.CRUISER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BATTLEZONE
Normal file
BIN
res/TITLE.HGR.UNPACKED/BATTLEZONE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BB
Normal file
BIN
res/TITLE.HGR.UNPACKED/BB
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BC
Normal file
BIN
res/TITLE.HGR.UNPACKED/BC
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BEACH.LANDING
Normal file
BIN
res/TITLE.HGR.UNPACKED/BEACH.LANDING
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BEER.RUN
Normal file
BIN
res/TITLE.HGR.UNPACKED/BEER.RUN
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BEJEWELED
Normal file
BIN
res/TITLE.HGR.UNPACKED/BEJEWELED
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BELLHOP
Normal file
BIN
res/TITLE.HGR.UNPACKED/BELLHOP
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BERZAP
Normal file
BIN
res/TITLE.HGR.UNPACKED/BERZAP
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BEZARE
Normal file
BIN
res/TITLE.HGR.UNPACKED/BEZARE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BEZOFF
Normal file
BIN
res/TITLE.HGR.UNPACKED/BEZOFF
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BH
Normal file
BIN
res/TITLE.HGR.UNPACKED/BH
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BK
Normal file
BIN
res/TITLE.HGR.UNPACKED/BK
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BLACK.MAGIC
Normal file
BIN
res/TITLE.HGR.UNPACKED/BLACK.MAGIC
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BLISTER.BALL
Normal file
BIN
res/TITLE.HGR.UNPACKED/BLISTER.BALL
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BOA
Normal file
BIN
res/TITLE.HGR.UNPACKED/BOA
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BOLO
Normal file
BIN
res/TITLE.HGR.UNPACKED/BOLO
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BORG
Normal file
BIN
res/TITLE.HGR.UNPACKED/BORG
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BOULDER.DASH
Normal file
BIN
res/TITLE.HGR.UNPACKED/BOULDER.DASH
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BOULDER.DASH.II
Normal file
BIN
res/TITLE.HGR.UNPACKED/BOULDER.DASH.II
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BQ
Normal file
BIN
res/TITLE.HGR.UNPACKED/BQ
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BR
Normal file
BIN
res/TITLE.HGR.UNPACKED/BR
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BRUCE.LEE
Normal file
BIN
res/TITLE.HGR.UNPACKED/BRUCE.LEE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BT
Normal file
BIN
res/TITLE.HGR.UNPACKED/BT
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BU
Normal file
BIN
res/TITLE.HGR.UNPACKED/BU
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BUBBLE.BOBBLE
Normal file
BIN
res/TITLE.HGR.UNPACKED/BUBBLE.BOBBLE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BUG.ATTACK
Normal file
BIN
res/TITLE.HGR.UNPACKED/BUG.ATTACK
Normal file
Binary file not shown.
2
res/TITLE.HGR.UNPACKED/BUG.BATTLE
Normal file
2
res/TITLE.HGR.UNPACKED/BUG.BATTLE
Normal file
File diff suppressed because one or more lines are too long
BIN
res/TITLE.HGR.UNPACKED/BUZZARD.BAIT
Normal file
BIN
res/TITLE.HGR.UNPACKED/BUZZARD.BAIT
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BW
Normal file
BIN
res/TITLE.HGR.UNPACKED/BW
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/BY
Normal file
BIN
res/TITLE.HGR.UNPACKED/BY
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CANYON.CLIMBER
Normal file
BIN
res/TITLE.HGR.UNPACKED/CANYON.CLIMBER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CAPTAIN.POWER
Normal file
BIN
res/TITLE.HGR.UNPACKED/CAPTAIN.POWER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CB
Normal file
BIN
res/TITLE.HGR.UNPACKED/CB
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CC
Normal file
BIN
res/TITLE.HGR.UNPACKED/CC
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CEILING.ZERO
Normal file
BIN
res/TITLE.HGR.UNPACKED/CEILING.ZERO
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CENTIPEDE
Normal file
BIN
res/TITLE.HGR.UNPACKED/CENTIPEDE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CF
Normal file
BIN
res/TITLE.HGR.UNPACKED/CF
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CG
Normal file
BIN
res/TITLE.HGR.UNPACKED/CG
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CHIP.OUT
Normal file
BIN
res/TITLE.HGR.UNPACKED/CHIP.OUT
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CHIVALRY
Normal file
BIN
res/TITLE.HGR.UNPACKED/CHIVALRY
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CHOPLIFTER
Normal file
BIN
res/TITLE.HGR.UNPACKED/CHOPLIFTER
Normal file
Binary file not shown.
1
res/TITLE.HGR.UNPACKED/CL
Normal file
1
res/TITLE.HGR.UNPACKED/CL
Normal file
File diff suppressed because one or more lines are too long
1
res/TITLE.HGR.UNPACKED/COLUMNS
Normal file
1
res/TITLE.HGR.UNPACKED/COLUMNS
Normal file
File diff suppressed because one or more lines are too long
BIN
res/TITLE.HGR.UNPACKED/COMMANDO
Normal file
BIN
res/TITLE.HGR.UNPACKED/COMMANDO
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CONAN
Normal file
BIN
res/TITLE.HGR.UNPACKED/CONAN
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CONGO
Normal file
BIN
res/TITLE.HGR.UNPACKED/CONGO
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CONGO.BONGO
Normal file
BIN
res/TITLE.HGR.UNPACKED/CONGO.BONGO
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/COSMIC.COMBAT
Normal file
BIN
res/TITLE.HGR.UNPACKED/COSMIC.COMBAT
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/COUNTY.FAIR
Normal file
BIN
res/TITLE.HGR.UNPACKED/COUNTY.FAIR
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CQ
Normal file
BIN
res/TITLE.HGR.UNPACKED/CQ
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CR
Normal file
BIN
res/TITLE.HGR.UNPACKED/CR
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CRAZY.MAZEY
Normal file
BIN
res/TITLE.HGR.UNPACKED/CRAZY.MAZEY
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CRICKATEER
Normal file
BIN
res/TITLE.HGR.UNPACKED/CRICKATEER
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CRIME.WAVE
Normal file
BIN
res/TITLE.HGR.UNPACKED/CRIME.WAVE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CRISIS.MOUNTAIN
Normal file
BIN
res/TITLE.HGR.UNPACKED/CRISIS.MOUNTAIN
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CROSSFIRE
Normal file
BIN
res/TITLE.HGR.UNPACKED/CROSSFIRE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CRYSTAL.CASTLES
Normal file
BIN
res/TITLE.HGR.UNPACKED/CRYSTAL.CASTLES
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CS
Normal file
BIN
res/TITLE.HGR.UNPACKED/CS
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CUBIT
Normal file
BIN
res/TITLE.HGR.UNPACKED/CUBIT
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CV
Normal file
BIN
res/TITLE.HGR.UNPACKED/CV
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CW
Normal file
BIN
res/TITLE.HGR.UNPACKED/CW
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CYBER.STRIKE
Normal file
BIN
res/TITLE.HGR.UNPACKED/CYBER.STRIKE
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/CYCLOD
Normal file
BIN
res/TITLE.HGR.UNPACKED/CYCLOD
Normal file
Binary file not shown.
BIN
res/TITLE.HGR.UNPACKED/DANGEROUS.DAVE
Normal file
BIN
res/TITLE.HGR.UNPACKED/DANGEROUS.DAVE
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user