From 796c572a2c1275c7359e2df56141fb6b6ce97beb Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 11 Jun 2024 16:41:38 -0400 Subject: [PATCH] fish: start drawing fish --- games/sb/fish/fish.s | 21 +++++++++++++++++++++ games/sb/fish/graphics/Makefile | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/games/sb/fish/fish.s b/games/sb/fish/fish.s index 86c58ec2..043c4498 100644 --- a/games/sb/fish/fish.s +++ b/games/sb/fish/fish.s @@ -354,6 +354,27 @@ draw_common_animation: ;============================ ; draw fish + lda #left_fish_sprite + sta INH + + lda #grey_fish_mask + sta MASKH + + + lda #18 + sta SPRITE_X + + lda #150 + sta SPRITE_Y + + jsr hgr_draw_sprite_mask + + + ;============================ ; draw reed (over fish) diff --git a/games/sb/fish/graphics/Makefile b/games/sb/fish/graphics/Makefile index b0968c09..c563d190 100644 --- a/games/sb/fish/graphics/Makefile +++ b/games/sb/fish/graphics/Makefile @@ -57,7 +57,7 @@ fish_sprites.inc: fish_sprites.png $(HGR_SPRITE) -s -l grey_fish_sprite fish_sprites.png 0 0 20 7 > fish_sprites.inc $(HGR_SPRITE) -s -l red_fish_sprite fish_sprites.png 0 9 20 16 >> fish_sprites.inc $(HGR_SPRITE) -s -l green_fish_sprite fish_sprites.png 0 18 27 25 >> fish_sprites.inc - $(HGR_SPRITE) -s -l grey_fish_mask fish_sprites.png 42 29 62 36 > fish_sprites.inc + $(HGR_SPRITE) -s -l grey_fish_mask fish_sprites.png 42 29 62 36 >> fish_sprites.inc $(HGR_SPRITE) -s -l red_fish_mask fish_sprites.png 42 38 62 45 >> fish_sprites.inc $(HGR_SPRITE) -s -l green_fish_mask fish_sprites.png 42 47 69 54 >> fish_sprites.inc $(HGR_SPRITE) -s -l left_fish_sprite fish_sprites.png 0 29 20 36 >> fish_sprites.inc