Is there a way to make a game with a massive python codebase web playable? the UI framework is exchangable.

It would be soo much easier to get people to try the game, if they would not need to download a binary and could just click on a link and go.

Getting even a small demo to run web based would help a lot and people started to ask for it.

I have tried several times an failed. Am i missing something?

Any ideas? Am i missing some tech that llows me to do that?

#gamedev #python

GitHub - pygame-web/pygbag: python and pygame wasm for everyone ( packager + test server + simulator )

python and pygame wasm for everyone ( packager + test server + simulator ) - pygame-web/pygbag

GitHub

@glyph

awesome, thx. I'll check that out!

@MarxMustermann good luck! there are a million weird edge cases and I hope you can get through without hitting them,. but development is pretty active.

@glyph

sounds like a good stress test :-P

Pyodide — Version 0.29.3

@cofiem

thanks! i'll check it out. I have in mind that pyiodide din't work out for me, but i'll reevaluate. Numpy support is really promising.

beeware also looks really great. Like mobile support will be the next thing after web ...

pyxel/docs/pyxel-web-en.md at main · kitao/pyxel

A retro game engine for Python. Contribute to kitao/pyxel development by creating an account on GitHub.

GitHub

@villares

thx, this looks interesting as well. I missed soo much stuff o.0

16 colors is probably a dealbreaker for me, though. Or is that in addition to the 256*256*256 a direct draw?

@MarxMustermann I'm not sure... looks like you can change the colors, but I have never checked if you can add more than 16... https://github.com/kitao/pyxel/blob/main/README.md#graphics

There is also pyp5js, my hack https://abav.lugaralgum.com/pyp5js/py5mode/ (that makes it more compatible with py5) and https://esperanc.github.io/Py5Script both use p5js for the graphics... prof. Esperança's Py5Script is based on pyscript and can handle numpy out of the box I think.