I made a try to see if it was so easy to put a game made with Python and Pygame in the browser so that everyone could run it without having to install anything… and it was that easy. Follow the video to see how easy really is.
Here is the example
https://pythonprogrammi.itch.io/tetris
The source code of the game can be found here. You need to do the change you see in the video and also convert the 2 mp3 files in ogg. I used ffmpeg -i all.mp3 all.ogg (you will need to install ffmpeg that is free.
What to do
Twitter: @pythonprogrammi - python_pygame