mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-16 11:30:55 +00:00
mist: octagon: properly draw tiny red page in distance if in fireplace
This commit is contained in:
parent
0359b21d2a
commit
cc508351d3
Binary file not shown.
Before Width: | Height: | Size: 1000 B After Width: | Height: | Size: 11 KiB |
@ -82,6 +82,9 @@ game_loop:
|
|||||||
cmp #OCTAGON_GRID_BOOK
|
cmp #OCTAGON_GRID_BOOK
|
||||||
beq looking_at_grid_book
|
beq looking_at_grid_book
|
||||||
|
|
||||||
|
cmp #OCTAGON_IN_FIREPLACE
|
||||||
|
beq in_fireplace_red_page
|
||||||
|
|
||||||
cmp #OCTAGON_GREEN_BOOK_OPEN
|
cmp #OCTAGON_GREEN_BOOK_OPEN
|
||||||
beq looking_at_green_book
|
beq looking_at_green_book
|
||||||
|
|
||||||
@ -165,6 +168,10 @@ looking_at_green_book:
|
|||||||
jsr draw_atrus_book
|
jsr draw_atrus_book
|
||||||
jmp nothing_special
|
jmp nothing_special
|
||||||
|
|
||||||
|
in_fireplace_red_page:
|
||||||
|
jsr draw_in_fireplace_red_page
|
||||||
|
jmp nothing_special
|
||||||
|
|
||||||
animate_red_book:
|
animate_red_book:
|
||||||
jsr red_book_animation
|
jsr red_book_animation
|
||||||
jmp nothing_special
|
jmp nothing_special
|
||||||
|
@ -21,6 +21,33 @@ close_fireplace:
|
|||||||
jmp change_location
|
jmp change_location
|
||||||
|
|
||||||
|
|
||||||
|
;====================================
|
||||||
|
; draw tiny red page if in fireplace
|
||||||
|
;====================================
|
||||||
|
|
||||||
|
draw_in_fireplace_red_page:
|
||||||
|
|
||||||
|
; only draw if out
|
||||||
|
lda RED_PAGES_TAKEN
|
||||||
|
and #OCTAGON_PAGE
|
||||||
|
bne done_ifrp
|
||||||
|
|
||||||
|
; draw it at 11,22
|
||||||
|
|
||||||
|
lda DRAW_PAGE
|
||||||
|
clc
|
||||||
|
adc #$5
|
||||||
|
sta ifrp_smc+2
|
||||||
|
|
||||||
|
lda #$bb
|
||||||
|
ifrp_smc:
|
||||||
|
sta $5a8+11
|
||||||
|
|
||||||
|
done_ifrp:
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fireplace_shelf_action:
|
fireplace_shelf_action:
|
||||||
|
|
||||||
; see if button
|
; see if button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user