ret
+ ; picks a direction for
+ ; a bat to move in
+ ; then transitions to move state
+ ; after verifying collision
+ ; otherwise -> end turn
+sm_bat_pick_direction:
+ ; move bat in random direction
+ call rand
+ and a, 0b11 ; rnadom direction 0-3
+
+ ; call correct movement setup
+ cp a, NORTH
+ call z, actor_up
+ cp a, SOUTH
+ call z, actor_down
+ cp a, WEST
+ call z, actor_left
+ cp a, EAST
+ call z, actor_right
+
+ ; verify collision
+
+ ; transition
+
+ ret
+
; loads initial state if
; state is 0
; inputs:
@done:
pop de
ret
+