I\'m new to JS, and decided to start of learning by a making a small game. I am using a setInterval to automate the enemy\'s attack. For their first attack the interval is corre
you should never use setInterval for animations!
requestAnimationFrame