mirror of
https://github.com/robmcmullen/fujirun.git
synced 2025-01-15 22:29:55 +00:00
Fixed regeneration
This commit is contained in:
parent
453641d8e2
commit
f606b4073f
3
actors.s
3
actors.s
@ -308,7 +308,8 @@ init_player_common
|
||||
clc
|
||||
adc current_actor
|
||||
tay
|
||||
lda player_start_col,y
|
||||
;lda player_start_col,y
|
||||
lda #16
|
||||
sta actor_col,x
|
||||
lda #MAZE_BOT_ROW
|
||||
sta actor_row,x
|
||||
|
7
logic.s
7
logic.s
@ -1,6 +1,6 @@
|
||||
EXPLODING_TIME = 10
|
||||
DEAD_TIME = 10
|
||||
REGENERATING_TIME = 60
|
||||
REGENERATING_TIME = 120
|
||||
END_GAME_TIME = 100
|
||||
TITLE_SCREEN_TIME = 100
|
||||
|
||||
@ -78,6 +78,7 @@ evaluate_status nop
|
||||
beq ?game_over
|
||||
|
||||
jsr next_life
|
||||
sta KBDSTROBE
|
||||
lda #PLAYER_REGENERATING
|
||||
sta actor_status,x
|
||||
lda #REGENERATING_TIME
|
||||
@ -86,6 +87,8 @@ evaluate_status nop
|
||||
|
||||
?regenerating cmp #PLAYER_REGENERATING
|
||||
bne ?end
|
||||
lda actor_input_dir,x
|
||||
bne ?alive
|
||||
dec actor_frame_counter,x
|
||||
beq ?alive
|
||||
|
||||
@ -99,6 +102,8 @@ evaluate_status nop
|
||||
|
||||
?alive lda #1
|
||||
sta actor_active,x
|
||||
lda #PLAYER_ALIVE
|
||||
sta actor_status,x
|
||||
?end rts
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user