mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-10 08:54:51 +00:00
duke: move graphics to own directory
This commit is contained in:
parent
c194ca0087
commit
9836d4b35f
@ -2,9 +2,6 @@ include ../Makefile.inc
|
||||
|
||||
DOS33 = ../dos33fs-utils/dos33
|
||||
DOS33_RAW = ../dos33fs-utils/dos33_raw
|
||||
PNG_TO_40x96 = ../gr-utils/png_to_40x96
|
||||
PNG_TO_40x48D = ../gr-utils/png_to_40x48d
|
||||
PNG2RLE = ../gr-utils/png2rle
|
||||
B2D = ../bmp2dhr/b2d
|
||||
PNG2GR = ../gr-utils/png2gr
|
||||
LZSA = ~/research/lzsa/lzsa/lzsa
|
||||
@ -27,28 +24,21 @@ HELLO: hello.bas
|
||||
DUKE: duke.o
|
||||
ld65 -o DUKE duke.o -C ../linker_scripts/apple2_2000.inc
|
||||
|
||||
duke.o: duke.s zp.inc hardware.inc duke.s duke.inc \
|
||||
duke.o: duke.s zp.inc hardware.inc duke.s \
|
||||
graphics/duke_graphics.inc \
|
||||
status_bar.s draw_duke.s gr_putsprite_crop.s \
|
||||
keyboard.s handle_laser.s
|
||||
ca65 -o duke.o duke.s -l duke.lst
|
||||
|
||||
####
|
||||
|
||||
duke.inc: duke.lzsa
|
||||
echo "duke_lzsa: .incbin \"duke.lzsa\"" > duke.inc
|
||||
|
||||
####
|
||||
|
||||
%.gr: %.png
|
||||
$(PNG2GR) $< $@
|
||||
|
||||
%.lzsa: %.gr
|
||||
$(LZSA) -r -f2 $< $@
|
||||
graphics/duke_graphics.inc:
|
||||
cd graphics && make
|
||||
|
||||
####
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst HELLO DUKE
|
||||
|
||||
cd graphics && make clean
|
||||
|
||||
|
||||
|
@ -48,9 +48,9 @@ duke_start:
|
||||
; load duke bg
|
||||
;====================================
|
||||
|
||||
lda #<duke_lzsa
|
||||
lda #<duke1_bg_lzsa
|
||||
sta LZSA_SRC_LO
|
||||
lda #>duke_lzsa
|
||||
lda #>duke1_bg_lzsa
|
||||
sta LZSA_SRC_HI
|
||||
lda #$c ; load to page $c00
|
||||
jsr decompress_lzsa2_fast
|
||||
@ -116,7 +116,7 @@ done_with_duke:
|
||||
;==========================
|
||||
|
||||
; level graphics
|
||||
.include "duke.inc"
|
||||
.include "graphics/duke_graphics.inc"
|
||||
|
||||
.include "text_print.s"
|
||||
.include "gr_offsets.s"
|
||||
|
23
duke/graphics/Makefile
Normal file
23
duke/graphics/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
PNG2GR = ../../gr-utils/png2gr
|
||||
LZSA = ~/research/lzsa/lzsa/lzsa
|
||||
|
||||
all: duke_graphics.inc
|
||||
|
||||
####
|
||||
|
||||
duke_graphics.inc: duke1_bg.lzsa
|
||||
echo "duke1_bg_lzsa: .incbin \"duke1_bg.lzsa\"" > duke_graphics.inc
|
||||
|
||||
####
|
||||
|
||||
%.gr: %.png
|
||||
$(PNG2GR) $< $@
|
||||
|
||||
%.lzsa: %.gr
|
||||
$(LZSA) -r -f2 $< $@
|
||||
|
||||
####
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst *.lzsa duke_graphics.inc
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
BIN
duke/graphics/duke1_bg.png
Normal file
BIN
duke/graphics/duke1_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue
Block a user