mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-12 23:31:43 +00:00
ootw: slug byte makes you vanish!
This commit is contained in:
parent
108a584a8b
commit
e7f99c2d05
@ -75,11 +75,6 @@ ootw_cavern:
|
||||
;============================
|
||||
cavern_loop:
|
||||
|
||||
; check keyboard
|
||||
|
||||
jsr handle_keypress_cavern
|
||||
|
||||
|
||||
;==========================
|
||||
; check for earthquake
|
||||
|
||||
@ -141,11 +136,29 @@ shake_shake:
|
||||
done_shake:
|
||||
|
||||
|
||||
;===============
|
||||
; handle slug death
|
||||
|
||||
lda SLUGDEATH
|
||||
beq still_alive
|
||||
|
||||
|
||||
jmp just_slugs
|
||||
|
||||
still_alive:
|
||||
|
||||
;===============
|
||||
; check keyboard
|
||||
|
||||
jsr handle_keypress_cavern
|
||||
|
||||
;===============
|
||||
; draw physicist
|
||||
|
||||
jsr draw_physicist
|
||||
|
||||
just_slugs:
|
||||
|
||||
;===============
|
||||
; draw slugs
|
||||
|
||||
@ -353,9 +366,24 @@ draw_slugs:
|
||||
lda slugg0_out
|
||||
beq slug_done ; don't draw if not there
|
||||
|
||||
inc slugg0_gait
|
||||
|
||||
lda slugg0_gait
|
||||
; see if attack
|
||||
lda PHYSICIST_X
|
||||
sec
|
||||
sbc slugg0_x ; -2 to +2
|
||||
clc
|
||||
adc #2
|
||||
and #$fc
|
||||
bne no_attack
|
||||
attack:
|
||||
lda #$1
|
||||
sta SLUGDEATH
|
||||
; FIXME: make slug stand up
|
||||
|
||||
no_attack:
|
||||
inc slugg0_gait ; increment slug gait counter
|
||||
|
||||
lda slugg0_gait ; only move every 64 frames
|
||||
and #$3f
|
||||
cmp #$00
|
||||
bne slug_no_move
|
||||
|
Loading…
x
Reference in New Issue
Block a user