mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-09 02:54:25 +00:00
momkey: add chapter1 transition
This commit is contained in:
parent
5ef3420b96
commit
51d4ac07e4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user