Hello!
I've been loving your game and I wanted to share a suggestion that I believe could improve its performance greatly. I'm not entirely sure if Discord is the right place to share this feedback, so please let me know if there's a better way to reach out.
Currently, BAPBAP uses WebSockets for its transport layer. While WebSockets are a great choice for certain use cases, I believe that WebRTC, utilizing the UDP protocol, would be better suited for gaming. This is because UDP is a faster and more efficient protocol for real-time applications, such as online multiplayer games. To further illustrate this point, I'd like to share a video that explains the benefits of using UDP in gaming: https://www.youtube.com/watch?v=ZEEBsq3eQmg (note: not my video)
As a developer with experience in networking, I've created a library called netlib (https://github.com/poki/netlib) for P2P connections using WebRTC. Although I'm not suggesting that you use netlib for BAPBAP (since netlib is p2p and BAPBAP is not), I wanted to share this as a way to establish my credibility on the subject. 😅
I understand that switching the underlying transport layer may not be a trivial task, but I'm confident that using WebRTC would result in a more responsive and smoother gaming experience. I would be more than happy to help or provide any support needed to do some experimenting.
Please feel free to reach out if you have any questions or would like to discuss this suggestion further.
Thank you for your time, and keep up the great work on BAPBAP!
Cheer,
—Kaji (maining Anna and always building full Vamp)