Cute sprites! But I couldn't figure out how the basic attack works. Here's how I would do it:
- Enemy moves at a constant speed (no lunging)
- If the player clicks the mouse, anywhere on the screen AT ALL, the attack circle and animation instantly appears 100% of the time.
- If the enemy is inside the circle , it gets hit. If the enemy is not inside the circle, it doesn't get hit.
Those ares the only game rules! No windup, no cooldown, no hidden stamina bar, no "you didn't actually attack because you clicked on the ground instead of on the enemy," no "you have to line up the sword swish with the enemy and if he's already inside the circle when the animation plays, it "misses."
Keep it simple. You can make it complicated later with projectiles and enemy groups with different abilities and stuff. But the basic moving and attacking needs to be 100% reliable!