mirror of
https://github.com/robmcmullen/fujirun.git
synced 2024-12-28 23:30:22 +00:00
Fixed orbiter direction at corners going down
This commit is contained in:
parent
b665c92c4d
commit
10e8682f2f
6
logic.s
6
logic.s
@ -503,8 +503,8 @@ pixel_move nop
|
||||
; actor_xspeed[zp.current_actor] = level_speeds[zp.level]
|
||||
; actor_yspeed[zp.current_actor] = 0
|
||||
|
||||
; direction in A, actor in X; clobbers all
|
||||
set_speed nop
|
||||
; actor in X; clobbers all
|
||||
set_speed lda actor_dir,x
|
||||
and #TILE_VERT
|
||||
beq ?1
|
||||
lda #0
|
||||
@ -565,9 +565,9 @@ decide_orbiter nop
|
||||
?newdir lda current
|
||||
and #TILE_VERT
|
||||
beq ?lr
|
||||
|
||||
lda allowed
|
||||
and #TILE_HORZ
|
||||
beq ?lr
|
||||
|
||||
sta actor_dir,x
|
||||
; horizontal direction allowed; reset vertical subpixel to be right in the middle
|
||||
|
Loading…
Reference in New Issue
Block a user