2021-09-07 04:55:37 +00:00
|
|
|
; Peasant's Quest Ending
|
|
|
|
|
|
|
|
; From when the sword hits Trogdor on
|
|
|
|
|
|
|
|
; by Vince `deater` Weaver vince@deater.net
|
|
|
|
|
|
|
|
.include "hardware.inc"
|
|
|
|
.include "zp.inc"
|
|
|
|
|
|
|
|
.include "qload.inc"
|
|
|
|
|
|
|
|
ending:
|
|
|
|
lda #0
|
|
|
|
sta GAME_OVER
|
|
|
|
|
|
|
|
jsr hgr_make_tables
|
|
|
|
|
|
|
|
jsr HGR2 ; Hi-res graphics, no text at bottom
|
|
|
|
; Y=0, A=0 after this called
|
|
|
|
|
|
|
|
|
|
|
|
lda #0
|
|
|
|
sta FRAME
|
|
|
|
|
|
|
|
; update score
|
|
|
|
|
|
|
|
jsr update_score
|
|
|
|
|
|
|
|
; start music?
|
|
|
|
|
|
|
|
|
2021-09-08 03:31:37 +00:00
|
|
|
boat:
|
|
|
|
|
|
|
|
lda #<lake_e_boat_lzsa
|
|
|
|
sta getsrc_smc+1
|
|
|
|
lda #>lake_e_boat_lzsa
|
|
|
|
sta getsrc_smc+2
|
|
|
|
|
|
|
|
lda #$40
|
|
|
|
|
|
|
|
jsr decompress_lzsa2_fast
|
|
|
|
|
|
|
|
jsr wait_until_keypress
|
|
|
|
|
|
|
|
|
2021-09-07 04:55:37 +00:00
|
|
|
waterfall:
|
|
|
|
|
|
|
|
lda #<waterfall_lzsa
|
|
|
|
sta getsrc_smc+1
|
|
|
|
lda #>waterfall_lzsa
|
|
|
|
sta getsrc_smc+2
|
|
|
|
|
|
|
|
lda #$40
|
|
|
|
|
|
|
|
jsr decompress_lzsa2_fast
|
|
|
|
|
|
|
|
jsr wait_until_keypress
|
|
|
|
|
|
|
|
jhonka:
|
|
|
|
|
|
|
|
lda #<jhonka_lzsa
|
|
|
|
sta getsrc_smc+1
|
|
|
|
lda #>jhonka_lzsa
|
|
|
|
sta getsrc_smc+2
|
|
|
|
|
|
|
|
lda #$40
|
|
|
|
|
|
|
|
jsr decompress_lzsa2_fast
|
|
|
|
|
|
|
|
jsr wait_until_keypress
|
|
|
|
|
|
|
|
cottage:
|
|
|
|
|
|
|
|
lda #<cottage_lzsa
|
|
|
|
sta getsrc_smc+1
|
|
|
|
lda #>cottage_lzsa
|
|
|
|
sta getsrc_smc+2
|
|
|
|
|
|
|
|
lda #$40
|
|
|
|
|
|
|
|
jsr decompress_lzsa2_fast
|
|
|
|
|
|
|
|
jsr wait_until_keypress
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final_screen:
|
|
|
|
|
|
|
|
lda #<the_end_lzsa
|
|
|
|
sta getsrc_smc+1
|
|
|
|
lda #>the_end_lzsa
|
|
|
|
sta getsrc_smc+2
|
|
|
|
|
|
|
|
lda #$40
|
|
|
|
|
|
|
|
jsr decompress_lzsa2_fast
|
|
|
|
|
2021-09-09 12:13:42 +00:00
|
|
|
jsr wait_until_keypress
|
|
|
|
|
2021-09-07 04:55:37 +00:00
|
|
|
game_over:
|
|
|
|
|
2021-09-09 12:13:42 +00:00
|
|
|
; jsr game_over
|
|
|
|
|
2021-09-10 04:46:25 +00:00
|
|
|
jsr boat
|
2021-09-07 04:55:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
peasant_text:
|
|
|
|
.byte 25,2,"Peasant's Quest",0
|
|
|
|
|
|
|
|
|
|
|
|
.include "decompress_fast_v2.s"
|
|
|
|
.include "wait_keypress.s"
|
|
|
|
|
|
|
|
;.include "draw_peasant.s"
|
|
|
|
|
|
|
|
.include "hgr_font.s"
|
|
|
|
.include "draw_box.s"
|
|
|
|
.include "hgr_rectangle.s"
|
|
|
|
;.include "hgr_7x28_sprite_mask.s"
|
|
|
|
.include "hgr_1x5_sprite.s"
|
|
|
|
;.include "hgr_save_restore.s"
|
|
|
|
.include "hgr_partial_save.s"
|
|
|
|
.include "hgr_input.s"
|
|
|
|
.include "hgr_tables.s"
|
|
|
|
.include "hgr_text_box.s"
|
|
|
|
.include "clear_bottom.s"
|
|
|
|
.include "gr_offsets.s"
|
|
|
|
|
|
|
|
.include "gr_copy.s"
|
|
|
|
|
|
|
|
.include "score.s"
|
|
|
|
|
|
|
|
.include "wait_a_bit.s"
|
|
|
|
|
|
|
|
.include "version.inc"
|
|
|
|
|
|
|
|
.include "graphics_end/ending_graphics.inc"
|
2021-09-09 12:13:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
boat_string:
|
|
|
|
.byte " Peasant's Quest",13
|
|
|
|
.byte "Written by Matt, Jonathan, and Mike",0
|
|
|
|
|
|
|
|
waterfall_string:
|
|
|
|
.byte " Programmed by Jonathan",13
|
|
|
|
.byte "Apple ][ support by Deater",0
|
|
|
|
|
|
|
|
jhonka_string:
|
|
|
|
.byte "Graphcis by Mike and Matt",0
|
|
|
|
|
|
|
|
cottage_string:
|
|
|
|
.byte " Quality Assurance Types:",13
|
|
|
|
.byte " Neal Stamper,",13
|
|
|
|
.byte "Don Chapman, and John Radle",0
|
|
|
|
|
|
|
|
cottage_string2:
|
|
|
|
.byte "Nice work on winning and everything.",0
|
|
|
|
|