Problem with Enemy State Update in React for Multiplayer Game: Projectiles Not Following Moving Enemies
I am working on a multiplayer tower defense game using React, where enemies and defenders are updated and rendered on a canvas. I’m encountering an issue where the enemy state is not updating correctly, causing projectiles to always target static enemy coordinates rather than following the moving enemies.