Routines
Prev:
B593
Up:
Map
Next:
B5A4
B596: Store the spark's direction and pick a frame
Used by the routines at
p4_p4
,
m4_m4
and
m4_p4
.
Input
H
dY
L
dX
save_dX_dY
B596
LD (IX+$09),L
the new dX and dY
B599
LD (IX+$0A),H
B59C
LD A,($5BA5)
a random frame, 1 to 3
B59F
AND $03
B5A1
JR NZ,
set_spark_frame
B5A3
INC A
Prev:
B593
Up:
Map
Next:
B5A4