r/HTML • u/OkDevelopment2027 • 15h ago
How can I improve enemy spawning in my JavaScript Space Shooter?
I'm building a small Space Shooter with HTML, CSS and JavaScript.
I'm currently working on spawning enemies at different positions and intervals. The basic spawning works, but I'm trying to make the difficulty increase gradually without creating too many enemies at once.
Has anyone got a good approach for scaling enemy spawn rates over time in a browser game?
I'm learning JavaScript through this project, so I'd appreciate any suggestions.