$begingroup$

I am making a recreation with Python, utilizing Pygame. I wish to publish my recreation on itch.io in order that it is playable within the browser.

Is there a method to do that? If that’s the case, how?

$endgroup$

1

$begingroup$

A recreation made with Pygame is just not playable within the browser. Video games made with that device may be placed on itch, however solely as a downloadable desktop package deal, not as an internet recreation.

For completeness, I ought to point out there are a couple of tasks that intention to get Python/Pygame working in a browser, however I’d not name any of those an important possibility. Essentially the most distinguished of those tasks is Skulpt, and listed below are some examples of utilizing it with Pygame.

Check with this present carefully associated query.

$endgroup$

$begingroup$

Since mid-2022, pygame has partial help for WebAssembly as upcoming python3.11 and permits for working the identical pygame code on desktops and cellular/net.

To publish your recreation on itch.io as some individuals have already carried out ( as may be seen on https://itch.io/c/2563651/pygame-wasm )

use pygbag from https://pypi.org/mission/pygbag , some documentation is out there from pygame-web.github.io

learn documentation to regulate your foremost loop for async, after which use python3 -m pygbag game_folder_with_all_extra_modules_and_assets/foremost.py

$endgroup$


You could log in to reply this query.


Not the reply you are on the lookout for? Browse different questions tagged .