mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-10 08:54:51 +00:00
ootw: fine-tune the walking/running a bit
This commit is contained in:
parent
448f16e947
commit
e3465596ac
@ -49,7 +49,7 @@ OOTW_C2: ootw_c2.o
|
||||
|
||||
ootw_c2.o: ootw_c2.s \
|
||||
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
||||
keyboard.s gr_run_sequence.s \
|
||||
keyboard.s gr_run_sequence.s physicist.s \
|
||||
ootw_graphics/sprites/sprites_physicist.inc \
|
||||
ootw_c2_cage.s ootw_c2_jail.s ootw_c2_intro.s \
|
||||
ootw_graphics/cage/ootw_c2_cage.inc \
|
||||
|
@ -1,5 +1,7 @@
|
||||
;=======================================
|
||||
; Move physicist based on current state
|
||||
;
|
||||
; TODO: only update on even frames to slow things down?
|
||||
|
||||
move_physicist:
|
||||
lda PHYSICIST_STATE
|
||||
@ -17,7 +19,7 @@ move_physicist_walking:
|
||||
|
||||
lda GAIT
|
||||
and #$7
|
||||
cmp #$4
|
||||
cmp #$4 ; only walk roughly 1/8 of time
|
||||
bne no_move_walk
|
||||
|
||||
lda DIRECTION
|
||||
@ -33,8 +35,13 @@ no_move_walk:
|
||||
;======================
|
||||
; running
|
||||
move_physicist_running:
|
||||
; inc GAIT ; cycle through animation
|
||||
inc GAIT ; cycle through animation
|
||||
inc GAIT ; cycle through animation
|
||||
|
||||
lda GAIT
|
||||
and #$3
|
||||
cmp #$2 ; only run roughly 1/4 of time
|
||||
bne no_move_run
|
||||
|
||||
lda DIRECTION
|
||||
beq p_run_left
|
||||
@ -43,7 +50,7 @@ move_physicist_running:
|
||||
rts
|
||||
p_run_left:
|
||||
dec PHYSICIST_X ; run left
|
||||
|
||||
no_move_run:
|
||||
rts
|
||||
;======================
|
||||
; standing
|
||||
|
Loading…
Reference in New Issue
Block a user