riven_hgr: prep for maglev ride

This commit is contained in:
Vince Weaver 2024-05-21 23:13:56 -04:00
parent b7ae7f5076
commit b2aa6b750e
5 changed files with 47 additions and 3 deletions

View File

@ -69,3 +69,4 @@ RIVEN_MAGSTEPS3 = 1
RIVEN_LOOKIN = 0
RIVEN_INSEAT = 1
RIVEN_READY2GO = 2

View File

@ -6,15 +6,15 @@ PNG_TO_HGR = ../../../utils/hgr-utils/png2hgr
all: maglev_graphics.inc
maglev_graphics.inc: \
inseat_s.hgr.zx02 inseat_w.hgr.zx02 \
inseat_s.hgr.zx02 inseat_w.hgr.zx02 inseat_e.hgr.zx02 \
lookin_w.hgr.zx02
echo "inseat_s_zx02: .incbin \"inseat_s.hgr.zx02\"" > maglev_graphics.inc
echo "inseat_w_zx02: .incbin \"inseat_w.hgr.zx02\"" >> maglev_graphics.inc
echo "inseat_e_zx02: .incbin \"inseat_e.hgr.zx02\"" >> maglev_graphics.inc
echo "lookin_w_zx02: .incbin \"lookin_w.hgr.zx02\"" >> maglev_graphics.inc
####
%.hgr: %.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -120,6 +120,27 @@ handle1_clicked:
rts
;=====================================
; handle2 clicked
;=====================================
; go for maglev ride
handle2_clicked:
bit SPEAKER
lda #LOAD_MOVIE2
sta WHICH_LOAD
lda #1
sta LEVEL_OVER
bit SPEAKER
rts
;==========================
; includes
;==========================

View File

@ -3,7 +3,8 @@
;===============================================
locations:
.word location0,location1
.word location0,location1,location2
; RIVEN_LOOKIN -- looking into the maglev
location0:
@ -44,3 +45,24 @@ location1:
.byte 11,14 ; special x
.byte 119,145 ; special y
.word handle1_clicked-1 ; special function
; RIVEN_READY2GO -- ready for maglev ride
location2:
.byte $FF ; north exit
.byte $FF ; south exit
.byte $ff ; east exit
.byte $ff ; west exit
.byte $FF ; north exit_dir
.byte $FF ; south exit_dir
.byte $ff ; east exit_dir
.byte $ff ; west exit_dir
.word $0000 ; north bg
.word $0000 ; south bg
.word inseat_e_zx02 ; east bg
.word $0000 ; west bg
.byte BG_EAST
.byte DIRECTION_E ; special exit
.byte 11,14 ; special x
.byte 119,145 ; special y
.word handle2_clicked-1 ; special function