Fighting Back the Tide
100 enemies. 1 of you. Can you beat them? Can you Fight Back the Tide?
This is just a web test for my first-ever game project. I have a 2014 MacBook Pro.
So I would love to hear your frame rate once all 100 enemies have spawned and are close to you!
Any feedback, suggestions, and criticism would be highly welcomed!
Press:
- '1' to start
- WASD to move
- LMB to attack
- RMB to dash
UPDATE: 2024-12-02
- Updated to improve game performance.
- Temporarily made the player character invulnerable, as well as removed the damage numbers from the player character, in order to test performance.
- TECHNICAL (performance optimization in progress):
- I first tried cropping the Knight and Skeleton sprites as much as possible in the "Select Frame" window, in order to get rid of as much transparent areas as possible. The reason for this is that Transparency is expensive, especially when there are multiple sprites with transparent areas are overlapping one another, especially in 3D.
- Then, because while performance improved significantly but there was still significant time spent in the "Render 3D Transparent Pass" item in the Visual Profiler, I replaced the enemy sprites with 3D models.
- To further improve performance, I disabled all enemy collisions as well as their physics processing, using set_physics_process(false).
- The above implementations made it so that I could have 300 enemies on screen at once, clumped around me, and still weaving in and out of the trees (which are still Sprite3Ds), and have about 17-18 fps, with my 2014 MacBook Pro (a dinosaur of a machine by today's standards!).
Please let me know if you see an improvement over the previous version, and let me know what frame rate (fps) you're getting, with a description of what's going on on screen at the time! Thanks! :)
Download
Install instructions
Press:
- '1' to start
- WASD to move
- LMB to attack
- RMB to dash