how can i make it that you can play it as a web.export using pygame
I don't know. I have never used the pygame library.