riven: add stained glass drawing

This commit is contained in:
Vince Weaver 2024-08-06 12:59:18 -04:00
parent f53cee9340
commit 1866619d48
5 changed files with 47 additions and 2 deletions

View File

@ -6,3 +6,4 @@ LOAD_INSIDE = 1
; INSIDE
RIVEN_INSIDE = 0
RIVEN_STAINED3 = 1

View File

@ -0,0 +1,24 @@
include ../../../../Makefile.inc
ZX02 = ~/research/6502_compression/zx02.git/build/zx02 -f
PNG_TO_HGR = ../../../../utils/hgr-utils/png2hgr
all: stained_graphics.inc
stained_graphics.inc: \
stained03.hgr.zx02
echo "stained03_zx02: .incbin \"stained03.hgr.zx02\"" > stained_graphics.inc
####
%.hgr: %.png
$(PNG_TO_HGR) $< > $@
%.hgr.zx02: %.hgr
$(ZX02) -f $< $@
####
clean:
rm -f *~ *.o *.lst *.zx02 *.hgr stained_graphics.inc

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -109,5 +109,6 @@ really_exit:
.include "graphics_inside/inside_graphics.inc"
.include "graphics_stained/stained_graphics.inc"
.include "leveldata_inside.inc"

View File

@ -3,7 +3,7 @@
;===============================================
locations:
.word location0
.word location0,location1
; RIVEN_INSIDE -- part way across the bridge
@ -11,7 +11,7 @@ location0:
.byte $ff ; north exit
.byte $ff ; south exit
.byte $E0 ; east exit
.byte $ff ; west exit
.byte RIVEN_STAINED3 ; west exit
.byte $FF ; north exit_dir
.byte $FF ; south exit_dir
.byte DIRECTION_E ; east exit_dir
@ -23,3 +23,22 @@ location0:
.byte BG_EAST|BG_WEST
.byte $ff ; special exit
; RIVEN_STAINED3 -- stained glass image
location1:
.byte $ff ; north exit
.byte $ff ; south exit
.byte $ff ; east exit
.byte RIVEN_INSIDE ; west exit
.byte $FF ; north exit_dir
.byte $FF ; south exit_dir
.byte $ff ; east exit_dir
.byte DIRECTION_W ; west exit_dir
.word $0000 ; north bg
.word $0000 ; south bg
.word $0000 ; east bg
.word stained03_zx02 ; west bg
.byte BG_WEST
.byte $ff ; special exit