0

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.

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

and now it supports web with very few code modifications.You can use the pygbag packager from pypi.org/project/pygbag documentation pygame-web.github.io

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.