For those who are wondering, I did make this game using pygame as well.
To create the web build, I used Pygbag which is a library you can use.