riven: add some more for disk40
@ -20,10 +20,7 @@ location0:
|
||||
.word maglev1_e_zx02 ; east bg
|
||||
.word maglev1_w_zx02 ; west bg
|
||||
.byte BG_EAST|BG_NORTH|BG_SOUTH|BG_WEST ; all bgs
|
||||
.byte DIRECTION_N ; special exit
|
||||
.byte 32,34 ; special x
|
||||
.byte 136,154 ; special y
|
||||
.word call_button_clicked-1
|
||||
.byte $ff ; special exit
|
||||
|
||||
; RIVEN_MAGPATH -- path to maglev
|
||||
location1:
|
||||
|
@ -1,10 +1,14 @@
|
||||
LOAD_TITLE = 0
|
||||
LOAD_MAGLEV = 1
|
||||
LOAD_MOVIE1 = 2
|
||||
LOAD_MOVIE2 = 3
|
||||
|
||||
;================================
|
||||
; Level definitions
|
||||
|
||||
; Maglev
|
||||
|
||||
RIVEN_MAGLEV_SIT = 0
|
||||
RIVEN_LOOKIN = 0
|
||||
RIVEN_INSEAT = 1
|
||||
RIVEN_READYTOGO = 2
|
||||
|
||||
|
@ -6,8 +6,13 @@ PNG_TO_HGR = ../../../../utils/hgr-utils/png2hgr
|
||||
all: maglev_graphics.inc
|
||||
|
||||
maglev_graphics.inc: \
|
||||
maglev_sit_s.hgr.zx02
|
||||
echo "maglev_sit_s_zx02: .incbin \"maglev_sit_s.hgr.zx02\"" > maglev_graphics.inc
|
||||
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
|
||||
|
||||
|
||||
####
|
||||
|
||||
|
BIN
games/riven_hgr/disk40_files/graphics_maglev/inseat_e.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
games/riven_hgr/disk40_files/graphics_maglev/inseat_s.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
games/riven_hgr/disk40_files/graphics_maglev/lookin_w.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
games/riven_hgr/disk40_files/graphics_outside/outside_s.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
games/riven_hgr/disk40_files/graphics_outside/outside_w.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
@ -55,12 +55,6 @@ riven_jungle_maglev:
|
||||
; init
|
||||
;===================================
|
||||
|
||||
; done in title
|
||||
|
||||
; lda #$20
|
||||
; sta HGR_PAGE
|
||||
; jsr hgr_make_tables
|
||||
|
||||
jsr change_location
|
||||
|
||||
jsr save_bg_14x14 ; save old bg
|
||||
@ -102,15 +96,63 @@ really_exit:
|
||||
|
||||
rts
|
||||
|
||||
;==================================
|
||||
; cart button clicked
|
||||
;==================================
|
||||
; TODO: call cart code
|
||||
;=====================================
|
||||
; handle clicked facing west
|
||||
;=====================================
|
||||
; all we can do here is flip
|
||||
; flip us to the east
|
||||
; go lores and play the movie
|
||||
handle1_clicked:
|
||||
|
||||
cart_button_clicked:
|
||||
bit SPEAKER
|
||||
.if 0
|
||||
lda #0
|
||||
sta MAGLEV_FLIP_DIRECTION
|
||||
|
||||
lda #LOAD_MOVIE1
|
||||
sta WHICH_LOAD
|
||||
|
||||
lda #1
|
||||
sta LEVEL_OVER
|
||||
.endif
|
||||
bit SPEAKER
|
||||
|
||||
rts
|
||||
|
||||
;=====================================
|
||||
; handle clicked facing east
|
||||
;=====================================
|
||||
; if x<27, go for maglev ride
|
||||
; else, flip back west
|
||||
handle2_clicked:
|
||||
|
||||
bit SPEAKER
|
||||
.if 0
|
||||
lda CURSOR_X
|
||||
cmp #27
|
||||
bcc go_for_maglev
|
||||
|
||||
lda #1
|
||||
sta MAGLEV_FLIP_DIRECTION
|
||||
|
||||
lda #LOAD_MOVIE1
|
||||
jmp common_handle2
|
||||
|
||||
go_for_maglev:
|
||||
lda #LOAD_MOVIE2
|
||||
|
||||
common_handle2:
|
||||
sta WHICH_LOAD
|
||||
|
||||
lda #1
|
||||
sta LEVEL_OVER
|
||||
.endif
|
||||
bit SPEAKER
|
||||
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
;==========================
|
||||
; includes
|
||||
|
@ -3,25 +3,64 @@
|
||||
;===============================================
|
||||
|
||||
locations:
|
||||
.word location0
|
||||
.word location0,location1,location2
|
||||
|
||||
; RIVEN_MAGLEV_SIT -- sitting in maglev
|
||||
|
||||
; RIVEN_LOOKIN -- looking into the maglev
|
||||
location0:
|
||||
.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 maglev_sit_s_zx02 ; south bg
|
||||
.word $0000 ; east bg
|
||||
.word $0000 ; west bg
|
||||
.byte BG_SOUTH ; bgs
|
||||
.byte DIRECTION_S ; special exit
|
||||
.byte 3,5 ; special x
|
||||
.byte 107,130 ; special y
|
||||
.word cart_button_clicked-1
|
||||
.byte $FF ; north exit
|
||||
.byte $ff ; south exit
|
||||
.byte $ff ; east exit
|
||||
.byte RIVEN_INSEAT ; west exit
|
||||
.byte $FF ; north exit_dir
|
||||
.byte DIRECTION_S ; south exit_dir
|
||||
.byte $ff ; east exit_dir
|
||||
.byte DIRECTION_W ; west exit_dir
|
||||
.word $0000 ; north bg
|
||||
.word inseat_s_zx02 ; south bg
|
||||
.word $0000 ; east bg
|
||||
.word lookin_w_zx02 ; west bg
|
||||
.byte BG_WEST|BG_SOUTH
|
||||
.byte $ff ; special exit
|
||||
|
||||
; RIVEN_INSEAT -- when sitting in seat
|
||||
location1:
|
||||
.byte $FF ; north exit
|
||||
.byte $ff ; south exit
|
||||
.byte $ff ; east exit
|
||||
.byte $ff ; west exit
|
||||
.byte $FF ; north exit_dir
|
||||
.byte DIRECTION_S ; south exit_dir
|
||||
.byte $ff ; east exit_dir
|
||||
.byte $ff ; west exit_dir
|
||||
.word $0000 ; north bg
|
||||
.word inseat_s_zx02 ; south bg
|
||||
.word $0000 ; east bg
|
||||
.word inseat_w_zx02 ; west bg
|
||||
.byte BG_WEST|BG_SOUTH
|
||||
.byte DIRECTION_W ; special exit
|
||||
.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 17,29 ; special x
|
||||
.byte 127,168 ; special y
|
||||
.word handle2_clicked-1 ; special function
|
||||
|
||||
|