diff --git a/loader/samples/minexample/main.asm b/loader/samples/minexample/main.asm index 8497f4c..97b6e3a 100644 --- a/loader/samples/minexample/main.asm +++ b/loader/samples/minexample/main.asm @@ -893,10 +893,14 @@ wait_frame_until: lda #0 sta vbl + lda enable_music + bne :+ lda cur_frame cmp #2 - bcc :+ + bcc :++ jsr sfx_play + jmp :++ +: jsr update_dialog : dec bmp_delay @@ -1830,3 +1834,25 @@ txt_fade_out_offset: lda timer_reached beq :- rts + +update_dialog: + ldy #0 + lda (text_ptr),y + bne :+ + rts +: + ; TODO + rts + +dialog:.byte8 + .byte 0, "are you ok?", 0 + .byte 1, "... who are you?", 0 + .byte 2, "thank goodness.\ni'm lilia from lance village.", 0 + .byte 3, "having some kind of premonition,\ni came here to have a look.", 0 + .byte 4, "suddenly,the area was enveloped\nby a light and you collapsed.", 0 + .byte 5, "where am i?", 0 + .byte 6, "this is the restaurant called y's.", 0 + .byte 7, "there're monsters near.\nwe should go.", 0 + .byte 8, "how about it,\ncan you stand up?", 0 + .byte 9, "yeah,i'm alright.should we\ngo before the monsters come?", 0 + .byte 10, "sure.", 0