问题
I was wondering if there is an online python interpreter with Pygame. It would be great if there is one, because when I share a game, I don't have to compile it first, I just send the code, and possibly upload the textures to a storage server and change the URL for the image location.
Is there an online Python interpreter with Pygame?
回答1:
None that I'm aware of. Running a Pygame application in the browser would require some way of displaying graphics and playing sound from a remote Python interpreter. This would be pretty complicated to do, and would likely not perform very well anyway.
If you want to write games which run in a web browser, learn Javascript.
来源:https://stackoverflow.com/questions/16044608/is-there-an-online-python-interpreter-with-the-pygame-module