mist: channel: visually show when faucet it open
in real game you got water sound effects, not easy to do on Apple II
@ -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
|
||||
|
@ -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
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 964 B After Width: | Height: | Size: 8.3 KiB |
BIN
mist/graphics_channel/tank_close_animation.png
Normal file
After Width: | Height: | Size: 9.8 KiB |