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.

Asked By: Conor Jalen

||

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.

Answered By: Starbuck5
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.