Export Python pygame Game to Web with WebAssembly (pygbag tutorial)

preview_player
Показать описание
Export your Python Game to Web with WebAssembly.

💎 Premium Courses:

0:00 Intro
0:24 How to share your game
1:35 Convert to WebAssebly
2:48 Install pygbag
3:20 Changes to the code
4:27 Conversion
4:59 Testing the result
5:44 Build Folder
Рекомендации по теме
Комментарии
Автор

Thank you Nick, that was new to me, it's amazing what todays web browsers can handle these days, soon all apps will be web based.

Tims_Projects
Автор

I still can't believe this, this is an incredible invention

edua
Автор

Exporting pygame games to wasm is new for me! Thanks for the detailed video. Great work :)

GANHEDDO
Автор

My html file created by pygbag is full of errors. I could fix them. But, even the, the game doesn't work for me after the emerging banner Pygame. After that, it only appear a black box. Could be possible if anybody share a succesfull generated .html file?

MrPennywise
Автор

am getting the following error: "WARNING: wasm mimetype unsupported on that system, trying to correct
Not using SSL"
could not find a solution anywhere

polycarpdev
Автор

the image is black clompledly black, do I need to upload my background too?

delicious_Pinguin
Автор

does it only work when your entire game is in a single file? Been stuck on "Setting [src] up" where 'src' is the name of my directory.

rentonl
Автор

I have a programe to edit images. It use Tkinter for the GUI. And PIL library. In this case, PyBag don't include these libraries. What can I do to achieve a similar result? Pyscript neither do. Maybe use a remote server to run it would be the unique solution?

MrPennywise
Автор

The browser shows blank screen after ready to start button, The game has no error while running normally
what could be possible cause?

tanaythelegend
Автор

Best video I could found about this. Thank you!!

ascoded-xrsx
Автор

mine is have a define so what should I do

Reddysupreme
Автор

Question I have multiple Python files (one that handles assets and one that handles physics and the main game). How do I handle that with pygback?

rickyasbury
Автор

i successfully completed the instruction but as soon as i interact with my game, there seems to be a light blue overlay pver my game (similar to how it looks like when you select and image/ or text) how can i fix this?

Bilal-_-
Автор

What if my game has 3 main definitions, play, main menu and tutorial?? how do I include async with it ? When i try to do async def with tutorial function, I cant change to any of the other screens anymore.

idkaname
Автор

Im trying to do this on a raspi over a LAN connection. Ive done this and it works on localhost however, id like to be able to display it on some page like you have in the end. Ive got apache on the pi to work, but how can i run the game this way? Does the python file need to be an APK? I cannot find anything online explaining how to do this

thecontextual
Автор

It (as well as pyinstaller if I don’t put It into the directory layer above the rest of the game) seemingly can’t find the font I’m importing. Why do all compiling programs struggle with fonts so much?

RndmGuy
Автор

my screen is black after I click start, any suggestion?

johnstarfire
Автор

It is showing black screen on me, anybody know the issue? I try with the snake example and also try on my game. the background music is played but the graphics, input, and sfx is not. just black screen

amirhm
Автор

adding the asyncio stuff makes my code stop working

Jacknoham
Автор

when i open the game in the browser it doesn't start and screen is black

Shadoww