Hello, we are also trying to use pygbag, but we keep getting an error, did you perchance use pygame_gui for the ui, or just pygame itself?
Viewing post in Ping (Ludum Dare 59) comments
I am just using pygame, I've found that you could add a /#debug when trying the web version.
Other than that I also had to move the entire code base inside a subfolder otherwise pygbag would try to build what was inside my virtual environment.
And I forgot to add "await asyncio.sleep(0)" in my game loop during a refactor and even with debug it wasn't telling me.
Hope that helps !
I’ve succesfully made pygbag builds for pygame games before, but not for my game using pygame_gui (City of London 1923). It seems that those are not compatible (because the gui library seems to do some threaded resource loading which I think breaks the web build). I did unfortunately not find a workaround for that issue, but that was last year, so maybe by now there is a solution.