Added pre-generated HGR screens so you don't need tohgr unless rebuilding images

This commit is contained in:
Rob McMullen 2017-08-17 10:12:39 -07:00
parent 818e821b4f
commit e9ef3f6a64
5 changed files with 12 additions and 9 deletions

View File

@ -1,5 +1,4 @@
SPRITES = atari-sprite9x11.png apple-sprite9x11.png
CPSPRITES = apple-sprite9x11.png moldy_burger.png
TOHGR = tohgr
A2 = build-apple2/
@ -8,31 +7,35 @@ all: working.dsk demo.dsk
build-apple2:
mkdir build-apple2
$(A2)player-missile.hgr: player-missile.png
player-missile.hgr: player-missile.png
cp player-missile.png $(A2)
asmgen.py $(A2)player-missile.png
cp $(A2)player-missile.hgr player-missile.hgr
$(A2)player-missile-2.hgr: player-missile-2.png
player-missile-2.hgr: player-missile-2.png
cp player-missile-2.png $(A2)
asmgen.py $(A2)player-missile-2.png
cp $(A2)player-missile-2.hgr player-missile-2.hgr
$(A2)kansasfest-hackfest.hgr: kansasfest-hackfest.png
kansasfest-hackfest.hgr: kansasfest-hackfest.png
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-top.png
$(TOHGR) $(A2)kansasfest-hackfest-top.png
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-bot.png
asmgen.py -i bw $(A2)kansasfest-hackfest-bot.png
asmgen.py --merge 96 -o $(A2)kansasfest-hackfest $(A2)kansasfest-hackfest-top.hgr $(A2)kansasfest-hackfest-bot.hgr
cp $(A2)kansasfest-hackfest.hgr kansasfest-hackfest.hgr
$(A2)title.hgr: title.png
title.hgr: title.png
cp title.png $(A2)title-top.png
$(TOHGR) $(A2)title-top.png
cp title.png $(A2)title-bot.png
asmgen.py -i bw $(A2)title-bot.png
asmgen.py --merge 136 167 -o $(A2)title $(A2)title-top.hgr $(A2)title-bot.hgr
cp $(A2)title.hgr title.hgr
$(A2)title.s: $(A2)title.hgr
$(A2)title.s: title.hgr
# use legacy block format
lz4 -9lf $(A2)title.hgr $(A2)title.lz4
lz4 -9lf title.hgr $(A2)title.lz4
# strip first 8 bytes (start at byte 9 when counting from 1)
tail -c +9 $(A2)title.lz4 > $(A2)title.lz4-payload
asmgen.py -a mac65 --src $(A2)title.lz4-payload -n title > $(A2)title.s
@ -63,8 +66,8 @@ $(A2)demo.xex: wipes-demo.s main.s constants.s rand.s maze.s $(A2)working-sprite
echo '.include "$(A2)title.s"' >> $(A2)demo.s
atasm -mae -o$(A2)demo.xex $(A2)demo.s -L$(A2)demo.var -g$(A2)demo.lst
demo.dsk: build-apple2 $(A2)demo.xex $(A2)player-missile.hgr $(A2)player-missile-2.hgr $(A2)kansasfest-hackfest.hgr $(A2)title.hgr
atrcopy demo.dsk boot -d $(A2)player-missile.hgr@2000 $(A2)player-missile-2.hgr@4000 $(A2)kansasfest-hackfest.hgr@2000 -b $(A2)demo.xex --brun 6000 -f
demo.dsk: build-apple2 $(A2)demo.xex player-missile.hgr player-missile-2.hgr kansasfest-hackfest.hgr title.hgr
atrcopy demo.dsk boot -d player-missile.hgr@2000 player-missile-2.hgr@4000 kansasfest-hackfest.hgr@2000 -b $(A2)demo.xex --brun 6000 -f
clean:
rm -rf $(A2)

BIN
kansasfest-hackfest.hgr Normal file

Binary file not shown.

BIN
player-missile-2.hgr Normal file

Binary file not shown.

BIN
player-missile.hgr Normal file

Binary file not shown.

BIN
title.hgr Normal file

Binary file not shown.