momkey: add chapter1 transition

This commit is contained in:
Vince Weaver 2020-10-20 15:39:30 -04:00
parent 5ef3420b96
commit 51d4ac07e4
2 changed files with 33 additions and 0 deletions

View File

@ -2,4 +2,26 @@
;
chapter1_transition:
;===================================
; show chpater screen and play music
;===================================
lda #<part1_lzsa
sta LZSA_SRC_LO
lda #>part1_lzsa
sta LZSA_SRC_HI
lda #$c ; load to page $c00
jsr decompress_lzsa2_fast
; copy over background
jsr gr_copy_to_current
; flip page
jsr page_flip
ldx #$C0
jsr wait_a_bit
rts

View File

@ -20,6 +20,17 @@ lookout_check_stairs:
cmp #DIR_DOWN
bne lookout_no_exit
lookout_to_poster:
; check to see if first time
lda FIRST_TIME
and #FIRST_TIME_LEAVE_LOOKOUT
bne not_first_poster
jsr chapter1_transition
not_first_poster:
lda #MONKEY_POSTER
sta LOCATION
lda #4