mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-29 21:31:53 +00:00
duke: autogen sprites
This commit is contained in:
parent
a091e8e7ec
commit
6552127256
@ -48,7 +48,7 @@ DUKE_LEVEL1: duke_level1.o
|
||||
duke_level1.o: duke_level1.s zp.inc hardware.inc \
|
||||
print_help.s gr_fast_clear.s quit_yn.s text_drawbox.s level_end.s \
|
||||
enemies_level1.s actions_level1.s item_level1.s \
|
||||
graphics/duke_graphics.inc duke_l2_sprites.inc \
|
||||
graphics/duke_graphics.inc sprites/duke_sprites.inc \
|
||||
maps/level1_map.lzsa \
|
||||
status_bar.s draw_duke.s move_duke.s gr_putsprite_crop.s \
|
||||
draw_tilemap.s \
|
||||
@ -64,7 +64,7 @@ DUKE_LEVEL2: duke_level2.o
|
||||
duke_level2.o: duke_level2.s zp.inc hardware.inc \
|
||||
print_help.s gr_fast_clear.s quit_yn.s text_drawbox.s level_end.s \
|
||||
enemies_level2.s actions_level2.s item_level2.s \
|
||||
graphics/duke_graphics.inc duke_sprites.inc \
|
||||
graphics/duke_graphics.inc sprites/duke_sprites.inc \
|
||||
maps/level2_map.lzsa \
|
||||
status_bar.s draw_duke.s move_duke.s gr_putsprite_crop.s \
|
||||
draw_tilemap.s \
|
||||
@ -75,6 +75,9 @@ duke_level2.o: duke_level2.s zp.inc hardware.inc \
|
||||
|
||||
####
|
||||
|
||||
sprites/duke_sprites.inc:
|
||||
cd sprites && make
|
||||
|
||||
graphics/duke_graphics.inc:
|
||||
cd graphics && make
|
||||
|
||||
@ -91,4 +94,4 @@ clean:
|
||||
cd graphics && make clean
|
||||
cd maps && make clean
|
||||
cd title && make clean
|
||||
|
||||
cd sprites && make clean
|
||||
|
@ -224,7 +224,7 @@ done_with_duke:
|
||||
.include "level_end.s"
|
||||
|
||||
.include "draw_duke.s"
|
||||
.include "duke_sprites.inc"
|
||||
.include "sprites/duke_sprites.inc"
|
||||
.include "move_duke.s"
|
||||
.include "handle_laser.s"
|
||||
.include "draw_tilemap.s"
|
||||
|
34
games/duke/sprites/Makefile
Normal file
34
games/duke/sprites/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
include ../../../Makefile.inc
|
||||
|
||||
ZX02 = ~/research/6502_compression/zx02.git/build/zx02 -f
|
||||
PNG_TO_HGR = ../../../utils/hgr-utils/png2hgr
|
||||
LINKER_SCRIPTS = ../../../linker_scripts
|
||||
DOS33 = ../../../utils/dos33fs-utils/dos33
|
||||
EMPTY_DISK = ../../../empty_disk/empty.dsk
|
||||
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
||||
PNG2GR = ../../../utils/gr-utils/png2gr
|
||||
PNG2SPRITES = ../../../utils/gr-utils/png2sprites
|
||||
HGR_SPRITE = ../../../utils/hgr-utils/hgr_make_sprite
|
||||
|
||||
all: duke_sprites.inc
|
||||
|
||||
####
|
||||
|
||||
duke_sprites.inc: duke_sprites.png
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_stand_right 1 2 4 8 > duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_stand_left 6 2 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_walking_right 1 12 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_walking_left 6 12 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_jumping_right 1 22 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_jumping_left 6 22 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_falling_right 1 32 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_falling_left 6 32 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_shooting_right 11 2 4 8 >> duke_sprites.inc
|
||||
$(PNG2SPRITES) duke_sprites.png duke_sprite_shooting_left 16 2 4 8 >> duke_sprites.inc
|
||||
|
||||
|
||||
####
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst duke_sprites.inc
|
||||
|
BIN
games/duke/sprites/duke_sprites.png
Normal file
BIN
games/duke/sprites/duke_sprites.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 777 B |
Loading…
x
Reference in New Issue
Block a user