mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 02:31:00 +00:00
ootw: c4: shields now more or less OK
might look better with fancier animation
This commit is contained in:
parent
db42d1019a
commit
eb980e6584
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user