247 lines
6.2 KiB
Makefile
247 lines
6.2 KiB
Makefile
|
|
all : \
|
|
../sprites/jmpka0.png \
|
|
../sprites/jmpra0.png \
|
|
../sprites/jmppa0.png \
|
|
../sprites/jmppb0.png \
|
|
../sprites/jmppc0.png \
|
|
../graphics/jmpr_reticle1.png \
|
|
../graphics/jmpr_reticle2.png \
|
|
../graphics/jmpr_reticle3.png \
|
|
../sprites/jmpia0.png \
|
|
../sprites/jmpib0.png \
|
|
../sprites/jmpic0.png \
|
|
../sprites/jmpid0.png \
|
|
../sprites/jmpie0.png \
|
|
../sprites/jmpif0.png \
|
|
../sprites/jmpig0.png \
|
|
../sprites/jmpja0.png \
|
|
../sprites/jmpjb0.png \
|
|
../sprites/jmpjc0.png \
|
|
../sprites/jmpjd0.png \
|
|
../sprites/jmpje0.png \
|
|
../sprites/jmpjf0.png \
|
|
../sprites/jmpjg0.png \
|
|
letter_sprites_l \
|
|
letter_sprites_r \
|
|
brightmaps
|
|
|
|
../sprites/jmpka0.png : kit.aseprite
|
|
aseprite -b $^ --save-as $@
|
|
|
|
../sprites/jmpra0.png : jmpra0.aseprite
|
|
aseprite -b $^ --save-as $@
|
|
|
|
# Base sprite with no numerical indicator, but anim frames (0,1,2) for
|
|
# status light.
|
|
../sprites/jmppa0.png ../sprites/jmppb0.png ../sprites/jmppc0.png : povsprite.aseprite
|
|
aseprite -b $^ \
|
|
--ignore-layer "brightmap_display" \
|
|
--ignore-layer "brightmap_leds" \
|
|
--ignore-layer "numberindicatorl" \
|
|
--ignore-layer "numberindicatorr" \
|
|
--frame-range 0,2 --save-as $@
|
|
|
|
# Correct Aseprite's automatic naming to Doom's. (Number at the
|
|
# end is for rotations, letters are for frame numbers.)
|
|
mv ../sprites/jmppa1.png ../sprites/jmppb0.png
|
|
mv ../sprites/jmppa2.png ../sprites/jmppc0.png
|
|
|
|
../graphics/jmpr_reticle1.png \
|
|
../graphics/jmpr_reticle2.png \
|
|
../graphics/jmpr_reticle3.png : jmpr_reticle.aseprite
|
|
aseprite -b $^ \
|
|
--frame-range 0,2 --save-as $@
|
|
|
|
../sprites/jmpia0.png \
|
|
../sprites/jmpib0.png \
|
|
../sprites/jmpic0.png \
|
|
../sprites/jmpid0.png \
|
|
../sprites/jmpie0.png \
|
|
../sprites/jmpif0.png \
|
|
../sprites/jmpig0.png \
|
|
../sprites/jmpja0.png \
|
|
../sprites/jmpjb0.png \
|
|
../sprites/jmpjc0.png \
|
|
../sprites/jmpjd0.png \
|
|
../sprites/jmpje0.png \
|
|
../sprites/jmpjf0.png \
|
|
../sprites/jmpjg0.png : povsprite.aseprite
|
|
|
|
aseprite -b $^ \
|
|
--layer "numberindicatorl" \
|
|
--frame-range 0,6 --save-as ../sprites/jmpia.png
|
|
|
|
aseprite -b $^ \
|
|
--layer "numberindicatorr" \
|
|
--frame-range 0,6 --save-as ../sprites/jmpja.png
|
|
|
|
mv ../sprites/jmpia1.png ../sprites/jmpia0.png
|
|
mv ../sprites/jmpia2.png ../sprites/jmpib0.png
|
|
mv ../sprites/jmpia3.png ../sprites/jmpic0.png
|
|
mv ../sprites/jmpia4.png ../sprites/jmpid0.png
|
|
mv ../sprites/jmpia5.png ../sprites/jmpie0.png
|
|
mv ../sprites/jmpia6.png ../sprites/jmpif0.png
|
|
mv ../sprites/jmpia7.png ../sprites/jmpig0.png
|
|
mv ../sprites/jmpja1.png ../sprites/jmpja0.png
|
|
mv ../sprites/jmpja2.png ../sprites/jmpjb0.png
|
|
mv ../sprites/jmpja3.png ../sprites/jmpjc0.png
|
|
mv ../sprites/jmpja4.png ../sprites/jmpjd0.png
|
|
mv ../sprites/jmpja5.png ../sprites/jmpje0.png
|
|
mv ../sprites/jmpja6.png ../sprites/jmpjf0.png
|
|
mv ../sprites/jmpja7.png ../sprites/jmpjg0.png
|
|
|
|
|
|
letter_sprites_% :
|
|
|
|
|
|
aseprite -b povsprite.aseprite \
|
|
--layer "numberindicator$*" \
|
|
--frame-range 0,6 --save-as tmp.png
|
|
|
|
convert tmp6.png \
|
|
tmp3.png -composite \
|
|
tmp5.png -composite \
|
|
tmp4.png -composite \
|
|
tmp2.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_0.png
|
|
|
|
convert tmp4.png \
|
|
tmp5.png -composite \
|
|
indic_$*_1.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp3.png -composite \
|
|
tmp5.png -composite \
|
|
tmp2.png -composite \
|
|
indic_$*_2.png
|
|
|
|
convert tmp3.png \
|
|
tmp4.png -composite \
|
|
tmp5.png -composite \
|
|
tmp6.png -composite \
|
|
tmp7.png -composite \
|
|
indic_$*_3.png
|
|
|
|
convert tmp1.png \
|
|
tmp4.png -composite \
|
|
tmp5.png -composite \
|
|
tmp7.png -composite \
|
|
indic_$*_4.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp3.png -composite \
|
|
tmp4.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_5.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp3.png -composite \
|
|
tmp4.png -composite \
|
|
tmp1.png -composite \
|
|
tmp2.png -composite \
|
|
indic_$*_6.png
|
|
|
|
convert tmp6.png \
|
|
tmp5.png -composite \
|
|
tmp4.png -composite \
|
|
indic_$*_7.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp3.png -composite \
|
|
tmp5.png -composite \
|
|
tmp4.png -composite \
|
|
tmp2.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_8.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp3.png -composite \
|
|
tmp5.png -composite \
|
|
tmp4.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_9.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp5.png -composite \
|
|
tmp4.png -composite \
|
|
tmp2.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_a.png
|
|
|
|
convert tmp7.png \
|
|
tmp3.png -composite \
|
|
tmp4.png -composite \
|
|
tmp2.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_b.png
|
|
|
|
convert tmp3.png \
|
|
tmp1.png -composite \
|
|
tmp2.png -composite \
|
|
tmp6.png -composite \
|
|
indic_$*_c.png
|
|
|
|
convert tmp7.png \
|
|
tmp3.png -composite \
|
|
tmp4.png -composite \
|
|
tmp2.png -composite \
|
|
tmp5.png -composite \
|
|
indic_$*_d.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp3.png -composite \
|
|
tmp2.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_e.png
|
|
|
|
convert tmp6.png \
|
|
tmp7.png -composite \
|
|
tmp2.png -composite \
|
|
tmp1.png -composite \
|
|
indic_$*_f.png
|
|
|
|
mv indic_$*_0.png ../sprites/jmi$*a0.png
|
|
mv indic_$*_1.png ../sprites/jmi$*b0.png
|
|
mv indic_$*_2.png ../sprites/jmi$*c0.png
|
|
mv indic_$*_3.png ../sprites/jmi$*d0.png
|
|
mv indic_$*_4.png ../sprites/jmi$*e0.png
|
|
mv indic_$*_5.png ../sprites/jmi$*f0.png
|
|
mv indic_$*_6.png ../sprites/jmi$*g0.png
|
|
mv indic_$*_7.png ../sprites/jmi$*h0.png
|
|
mv indic_$*_8.png ../sprites/jmi$*i0.png
|
|
mv indic_$*_9.png ../sprites/jmi$*j0.png
|
|
mv indic_$*_a.png ../sprites/jmi$*k0.png
|
|
mv indic_$*_b.png ../sprites/jmi$*l0.png
|
|
mv indic_$*_c.png ../sprites/jmi$*m0.png
|
|
mv indic_$*_d.png ../sprites/jmi$*n0.png
|
|
mv indic_$*_e.png ../sprites/jmi$*o0.png
|
|
mv indic_$*_f.png ../sprites/jmi$*p0.png
|
|
|
|
brightmaps : povsprite.aseprite
|
|
|
|
aseprite -b $^ \
|
|
--layer "brightmap_display" \
|
|
--frame-range 0,0 --save-as brightmap_display.png
|
|
|
|
aseprite -b $^ \
|
|
--layer "brightmap_leds" \
|
|
--frame-range 0,2 --save-as brightmap_leds.png
|
|
|
|
aseprite -b $^ \
|
|
--layer "brightmap_digits" \
|
|
--frame-range 0,0 --save-as brightmap_digits.png
|
|
|
|
composite brightmap_display.png brightmap_leds1.png -compose screen ../sprites/jmpr_brightmap_1.png
|
|
composite brightmap_display.png brightmap_leds2.png -compose screen ../sprites/jmpr_brightmap_2.png
|
|
composite brightmap_display.png brightmap_leds3.png -compose screen ../sprites/jmpr_brightmap_3.png
|
|
cp brightmap_digits.png ../sprites/bright_jmpr_digits.png
|