mirror of
https://github.com/robmcmullen/fujirun.git
synced 2024-12-29 14:33:23 +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_xspeed[zp.current_actor] = level_speeds[zp.level]
|
||||||
; actor_yspeed[zp.current_actor] = 0
|
; actor_yspeed[zp.current_actor] = 0
|
||||||
|
|
||||||
; direction in A, actor in X; clobbers all
|
; actor in X; clobbers all
|
||||||
set_speed nop
|
set_speed lda actor_dir,x
|
||||||
and #TILE_VERT
|
and #TILE_VERT
|
||||||
beq ?1
|
beq ?1
|
||||||
lda #0
|
lda #0
|
||||||
@ -565,9 +565,9 @@ decide_orbiter nop
|
|||||||
?newdir lda current
|
?newdir lda current
|
||||||
and #TILE_VERT
|
and #TILE_VERT
|
||||||
beq ?lr
|
beq ?lr
|
||||||
|
|
||||||
lda allowed
|
lda allowed
|
||||||
and #TILE_HORZ
|
and #TILE_HORZ
|
||||||
beq ?lr
|
|
||||||
|
|
||||||
sta actor_dir,x
|
sta actor_dir,x
|
||||||
; horizontal direction allowed; reset vertical subpixel to be right in the middle
|
; horizontal direction allowed; reset vertical subpixel to be right in the middle
|
||||||
|
Loading…
Reference in New Issue
Block a user