
[ad_1]
Game Development Stack Exchange is a query and reply website for skilled and impartial recreation builders. It solely takes a minute to enroll.
Anybody can ask a query
Anybody can reply
The greatest solutions are voted up and rise to the highest
Asked
Viewed
797 occasions
I’m making a recreation with Python, utilizing Pygame. I need to publish my recreation on itch.io in order that it is playable within the browser.
Is there a method to do that? If so, how?
$endgroup$
1
A recreation made with Pygame is just not playable within the browser. Games made with that instrument could be placed on itch, however solely as a downloadable desktop bundle, not as an internet recreation.
For completeness, I ought to point out there are a number of tasks that goal to get Python/Pygame working in a browser, however I might not name any of those an excellent possibility. The most distinguished of those tasks is Skulpt, and listed below are some examples of utilizing it with Pygame.
Refer to this current intently associated query.
$endgroup$
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/internet.
To publish your recreation on itch.io as some individuals have already performed ( as could be seen on https://itch.io/c/2563651/pygame-wasm )
use pygbag from https://pypi.org/challenge/pygbag , some documentation is accessible from pygame-web.github.io
learn documentation to regulate your important loop for async, after which use python3 -m pygbag game_folder_with_all_extra_modules_and_assets/important.py
Pmp P. is a brand new contributor to this website. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
You should log in to reply this query.
Not the reply you are searching for? Browse different questions tagged javascript python pygame html .
default
[ad_2]