Great effort!
Consider giving the enemies a slight pause when they are hit, otherwise they continue walking towards the player and hurt the player.