ootw: got multiple slugs going

This commit is contained in:
Vince Weaver 2019-01-18 16:13:27 -05:00
parent 12f0aafbfb
commit 3bb79c312f
2 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,5 @@
TODO: TODO:
+ slugs on ceiling + slugs on ceiling
+ slug cut-scene
far-out: far-out:
+ add the shooting-in-hallway scene + add the shooting-in-hallway scene

View File

@ -420,9 +420,9 @@ slugg2_gait: .byte 0
draw_slugs: draw_slugs:
ldx #0 ldx #0
sta WHICH_SLUG stx WHICH_SLUG
draw_slugs_loop: draw_slugs_loop:
ldx WHICH_SLUG
lda slugg0_out,X lda slugg0_out,X
bne check_kicked ; don't draw if not there bne check_kicked ; don't draw if not there
jmp slug_done jmp slug_done
@ -629,6 +629,18 @@ slug_right:
jsr put_sprite_flipped jsr put_sprite_flipped
slug_done: slug_done:
lda WHICH_SLUG
clc
adc #6
tax
stx WHICH_SLUG
cpx #18
beq slug_exit
jmp draw_slugs_loop
slug_exit:
rts rts
remove_slug: remove_slug: