sb: add some sprites to title

This commit is contained in:
Vince Weaver 2023-06-01 16:21:40 -04:00
parent 7fbebb9895
commit cae06cd638
6 changed files with 63 additions and 2 deletions

View File

@ -78,11 +78,12 @@ TITLE: title.o
title.o: title.s zx02_optim.s \
zp.inc hardware.inc \
hgr_logo_scroll.s audio.s \
hgr_logo_scroll.s audio.s hgr_sprite.s \
purple.s lc_detect.s \
sound/purple.btc.zx02 \
graphics/czmg4ap_title.hgr.zx02 \
graphics/videlectrix_top.hgr.zx02
graphics/videlectrix_top.hgr.zx02 \
graphics/title_sprites.inc
ca65 -o title.o title.s -l title.lst

20
games/sb/TODO Normal file
View File

@ -0,0 +1,20 @@
Title
+ Fix menu options
+ Keyboard controls
+ Add cheat loading screen
Duck:
+ Lots
+ move graphics files
Rat:
+ Exit back to main title
Asplode:
+ Lots
Cliff:
+ Lots
Jump
+ Lots

View File

@ -8,9 +8,11 @@ EMPTY_DISK = ../../../empty_disk/empty.dsk
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
PNG2GR = ../../../utils/gr-utils/png2gr
PNG2SPRITES = ../../../utils/gr-utils/png2sprites
HGR_SPRITE = ../../../utils/hgr-utils/hgr_make_sprite
all: strongbad_sample.hgr.zx02 \
czmg4ap_title.hgr.zx02 \
title_sprites.inc \
videlectrix_top.hgr.zx02 \
a2_duckpond_title.gr.zx02 \
a2_duckpond.gr.zx02 \
@ -101,6 +103,14 @@ czmg4ap_title.hgr: czmg4ap_title.png
####
title_sprites.inc: czmg4ap_title_sprites.png
$(HGR_SPRITE) -s -l empty_sprite czmg4ap_title_sprites.png 105 131 118 137 > title_sprites.inc
$(HGR_SPRITE) -s -l arrow_sprite czmg4ap_title_sprites.png 105 111 118 117 >> title_sprites.inc
$(HGR_SPRITE) -s -l purple_sprite czmg4ap_title_sprites.png 175 83 230 102 >> title_sprites.inc
####
videlectrix_top.hgr.zx02: videlectrix_top.hgr
$(ZX02) videlectrix_top.hgr videlectrix_top.hgr.zx02

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -131,6 +131,34 @@ load_title_image:
jsr play_purple
;==========================
; Update purple sprite
;===========================
lda #<purple_sprite
sta INL
lda #>purple_sprite
sta INH
lda #(175/7)
sta SPRITE_X
lda #83
sta SPRITE_Y
jsr hgr_draw_sprite
;==========================
; Draw arrow
;===========================
lda #<arrow_sprite
sta INL
lda #>arrow_sprite
sta INH
lda #(105/7)
sta SPRITE_X
lda #111
sta SPRITE_Y
jsr hgr_draw_sprite
wait_until_keypress:
lda KEYPRESS ; 4
@ -160,6 +188,8 @@ done:
.include "audio.s"
.include "purple.s"
.include "lc_detect.s"
.include "graphics/title_sprites.inc"
.include "hgr_sprite.s"
title_data:
.incbin "graphics/czmg4ap_title.hgr.zx02"