roach.health = 5
roach.angle = 0
roach.level = level
+ roach.level_layer = 'floor' # always the case for now
roach.move = partial(move, roach)
roach.last_moved = 0
roach.last_attacked= 0
def attack(roach, player_pos, player_layer, dt):
"""Attack the player if close enough"""
roach.last_attacked += dt
- if roach.last_attacked > 0.3:
+ if roach.last_attacked > 0.6:
roach.last_attacked = 0
if player_layer != 'floor':
return None