From eb980e65844d51b2c3ad8cd4a975aeac94623054 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 14 Aug 2019 12:21:45 -0400 Subject: [PATCH] ootw: c4: shields now more or less OK might look better with fancier animation --- ootw/shield.s | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/ootw/shield.s b/ootw/shield.s index e7c581be..5037035a 100644 --- a/ootw/shield.s +++ b/ootw/shield.s @@ -114,8 +114,14 @@ draw_shields_loop: tay + lda FRAMEL + and #$7 + bne dont_increment_shield + inc shield_count,X +dont_increment_shield: + lda shield_table_lo,Y sta INL lda shield_table_hi,Y @@ -144,27 +150,6 @@ done_draw_shields: rts - - - ;=================== - ; update shields - ;=================== -update_shields: -; lda laser0_out -; beq done_move_laser - - ; slow down laser -; lda laser0_count -; and #$3 -; bne no_move_laser - -; lda laser0_direction -; bne move_laser_right - - rts - - - ;==================== ; init shields ;==================== @@ -187,7 +172,10 @@ init_shields_loop: shield_progression: .byte 0,1 .byte 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 + .byte 2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3 .byte 4,5,4,5,4,5,4,5,4,5,4,5 + .byte 4,5,4,5,4,5,4,5,4,5,4,5 + .byte 6,7,6,7,6,7,6,7 .byte 6,7,6,7,6,7,6,7 .byte 0 .byte $FF