ootw: c4: shields now more or less OK

might look better with fancier animation
This commit is contained in:
Vince Weaver 2019-08-14 12:21:45 -04:00
parent db42d1019a
commit eb980e6584

View File

@ -114,8 +114,14 @@ draw_shields_loop:
tay tay
lda FRAMEL
and #$7
bne dont_increment_shield
inc shield_count,X inc shield_count,X
dont_increment_shield:
lda shield_table_lo,Y lda shield_table_lo,Y
sta INL sta INL
lda shield_table_hi,Y lda shield_table_hi,Y
@ -144,27 +150,6 @@ done_draw_shields:
rts 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 ; init shields
;==================== ;====================
@ -187,7 +172,10 @@ init_shields_loop:
shield_progression: shield_progression:
.byte 0,1 .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 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 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 6,7,6,7,6,7,6,7
.byte 0 .byte 0
.byte $FF .byte $FF