How do I integrate pygame game into flask webapp?
Question:
I have several games using the Pygame library that I would like to add to my web app.
I have done some research online and not found any answers to achieve this.
Is there a way to do this? Or will i have to use javascript for games.
Answers:
Pygame doesn’t support web.
It potentially could in the future, see https://github.com/pygame/pygame/issues/718.
If you want your games to work on browers you could use javascript, or even write games in an engine like Godot or Unity, which I believe support exporting to web formats.
I have several games using the Pygame library that I would like to add to my web app.
I have done some research online and not found any answers to achieve this.
Is there a way to do this? Or will i have to use javascript for games.
Pygame doesn’t support web.
It potentially could in the future, see https://github.com/pygame/pygame/issues/718.
If you want your games to work on browers you could use javascript, or even write games in an engine like Godot or Unity, which I believe support exporting to web formats.