mist: channel: visually show when faucet it open

in real game you got water sound effects, not easy to do on Apple II
This commit is contained in:
Vince Weaver 2020-07-27 11:12:56 -04:00
parent 2dcbdb9c28
commit bf5d6ed1d9
7 changed files with 42 additions and 0 deletions

View File

@ -84,11 +84,18 @@ game_loop:
;====================================
lda LOCATION
cmp #CHANNEL_TANK_CLOSE
beq fg_draw_faucet
cmp #CHANNEL_BOOK_OPEN
beq animate_mist_book
jmp nothing_special
fg_draw_faucet:
jsr draw_water_faucet
jmp nothing_special
animate_mist_book:
lda DIRECTION
cmp #DIRECTION_S

View File

@ -1,3 +1,38 @@
;===========================
; draw water valve
;===========================
draw_water_faucet:
lda CHANNEL_SWITCHES
and #CHANNEL_SW_FAUCET
beq no_draw_faucet
lda #17
sta XPOS
lda #20
sta YPOS
lda #<faucet_open_sprite
sta INL
lda #>faucet_open_sprite
sta INH
jsr put_sprite_crop
no_draw_faucet:
rts
faucet_open_sprite:
.byte 6,6
.byte $77,$77,$ff,$ff,$ff,$ff
.byte $f9,$97,$77,$9f,$f9,$ff
.byte $ff,$97,$d0,$9f,$ff,$ff
.byte $f9,$dd,$dd,$dd,$f9,$ff
.byte $ff,$ff,$dd,$77,$67,$27
.byte $ff,$ff,$fd,$77,$82,$96
;===========================
;===========================
; handle valve 1-6

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 964 B

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB