peasant: add waterfall foam

This commit is contained in:
Vince Weaver 2021-09-16 23:07:19 -04:00
parent f8ff9ce708
commit efa1b996af
3 changed files with 41 additions and 0 deletions

View File

@ -177,6 +177,44 @@ waterfall:
jsr save_bg_14x14
baby_loop:
;====================
; also animate waterfall
lda CURSOR_X
pha
lda CURSOR_Y
pha
lda #36
sta CURSOR_X
lda #93
sta CURSOR_Y
lda FRAME
and #$4
beq do_foam1
do_foam0:
lda #<foam0
sta INL
lda #>foam0
jmp do_foam
do_foam1:
lda #<foam1
sta INL
lda #>foam1
do_foam:
sta INH
jsr hgr_draw_sprite
pla
sta CURSOR_Y
pla
sta CURSOR_X
;====================
; actually draw baby
ldx BABY_COUNT
lda baby_progress,X
bmi done_baby

View File

@ -56,6 +56,9 @@ ending_sprites.inc: end_sprites.png boat_sprites.png
$(HGR_SPRITE) -s -l boat5 boat_sprites.png 91 47 165 91 >> ending_sprites.inc
$(HGR_SPRITE) -s -l boat6 boat_sprites.png 91 93 165 137 >> ending_sprites.inc
$(HGR_SPRITE) -s -l boat7 boat_sprites.png 91 139 165 183 >> ending_sprites.inc
$(HGR_SPRITE) -s -l foam0 end_sprites.png 155 38 165 85 >> ending_sprites.inc
$(HGR_SPRITE) -s -l foam1 end_sprites.png 183 38 195 85 >> ending_sprites.inc
clean:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 20 KiB