mirror of
https://github.com/robmcmullen/fujirun.git
synced 2024-06-08 02:29:28 +00:00
Added pre-generated HGR screens so you don't need tohgr unless rebuilding images
This commit is contained in:
parent
818e821b4f
commit
e9ef3f6a64
21
Makefile
21
Makefile
|
@ -1,5 +1,4 @@
|
||||||
SPRITES = atari-sprite9x11.png apple-sprite9x11.png
|
SPRITES = atari-sprite9x11.png apple-sprite9x11.png
|
||||||
CPSPRITES = apple-sprite9x11.png moldy_burger.png
|
|
||||||
TOHGR = tohgr
|
TOHGR = tohgr
|
||||||
A2 = build-apple2/
|
A2 = build-apple2/
|
||||||
|
|
||||||
|
@ -8,31 +7,35 @@ all: working.dsk demo.dsk
|
||||||
build-apple2:
|
build-apple2:
|
||||||
mkdir build-apple2
|
mkdir build-apple2
|
||||||
|
|
||||||
$(A2)player-missile.hgr: player-missile.png
|
player-missile.hgr: player-missile.png
|
||||||
cp player-missile.png $(A2)
|
cp player-missile.png $(A2)
|
||||||
asmgen.py $(A2)player-missile.png
|
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)
|
cp player-missile-2.png $(A2)
|
||||||
asmgen.py $(A2)player-missile-2.png
|
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
|
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-top.png
|
||||||
$(TOHGR) $(A2)kansasfest-hackfest-top.png
|
$(TOHGR) $(A2)kansasfest-hackfest-top.png
|
||||||
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-bot.png
|
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-bot.png
|
||||||
asmgen.py -i bw $(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
|
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
|
cp title.png $(A2)title-top.png
|
||||||
$(TOHGR) $(A2)title-top.png
|
$(TOHGR) $(A2)title-top.png
|
||||||
cp title.png $(A2)title-bot.png
|
cp title.png $(A2)title-bot.png
|
||||||
asmgen.py -i bw $(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
|
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
|
# 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)
|
# strip first 8 bytes (start at byte 9 when counting from 1)
|
||||||
tail -c +9 $(A2)title.lz4 > $(A2)title.lz4-payload
|
tail -c +9 $(A2)title.lz4 > $(A2)title.lz4-payload
|
||||||
asmgen.py -a mac65 --src $(A2)title.lz4-payload -n title > $(A2)title.s
|
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
|
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
|
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
|
demo.dsk: build-apple2 $(A2)demo.xex player-missile.hgr player-missile-2.hgr kansasfest-hackfest.hgr 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
|
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:
|
clean:
|
||||||
rm -rf $(A2)
|
rm -rf $(A2)
|
||||||
|
|
BIN
kansasfest-hackfest.hgr
Normal file
BIN
kansasfest-hackfest.hgr
Normal file
Binary file not shown.
BIN
player-missile-2.hgr
Normal file
BIN
player-missile-2.hgr
Normal file
Binary file not shown.
BIN
player-missile.hgr
Normal file
BIN
player-missile.hgr
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user