mist: fix some bugs found when recording playthrough

This commit is contained in:
Vince Weaver 2020-03-23 17:01:43 -04:00
parent 1e098bd513
commit 9e52e5eda7
3 changed files with 22 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -61,7 +61,7 @@ location2:
.word $0000 ; east bg
.word red_book_shelf_lzsa ; west bg
.byte BG_WEST ; west
.byte DIRECTION_N ; special exit
.byte DIRECTION_W ; special exit
.byte 16,25 ; special x
.byte 16,32 ; special y
.word red_book-1 ; special function

View File

@ -15,8 +15,16 @@ take_blue_page:
; FIXME: if holding another page, put it down?
and #MECHE_PAGE
beq dropped_blue_page
lda #HOLDING_BLUE_PAGE
sta HOLDING_PAGE
rts
dropped_blue_page:
lda #0
sta HOLDING_PAGE
rts
@ -40,8 +48,16 @@ take_red_page:
; FIXME: if holding another page, put it down?
and #MECHE_PAGE
beq dropped_red_page
lda #HOLDING_RED_PAGE
sta HOLDING_PAGE
rts
dropped_red_page:
lda #0
sta HOLDING_PAGE
rts
@ -62,6 +78,8 @@ enter_red_secret:
exit_puzzle_button_press:
bit $c030 ; click speaker
lda CURSOR_Y
cmp #40
bcs check_valid ; bge
@ -636,8 +654,9 @@ elevator_goto_half:
; TODO: animation?
ldy #LOCATION_EAST_EXIT
cpy #MECHE_TOP_FLOOR
beq regular_half
lda location26,Y
cmp #MECHE_TOP_FLOOR
bne regular_half
half_and_controls:
;=============================