Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Brython allows you to use Python scripts within HTML, but it's not designed for games.

Typically, if you make games in Python, you'll use pygame, and pygbag is designed specifically for converting games created with pygame to web games. This is the best option, but it has certain requirements, such as using asynchronous functions. It's best to study the pygbag documentation and examples.

https://pygame-web.github.io/

Thank you for your information. I will try to include the functions/modules in my python script.

I have used Pygbag for converting the python game into  HTML game. IT didn't open in my browser by double clicking on the file. Although it didn't worked properly, I uploaded to my Wobbly Potato game portal. Then it worked!
But the problem is the emoji that is included in the wacky pillars are not showing. What should I do now?

To test the web version locally, you need to run the game using pygbag with the following command:

pygbag your.app.folder

Regarding the image of the pillar, I'm not sure what the issue is, but it's likely a problem with the file path or something in your code. I doubt it's a problem with pygbag itself.

Those are not files. It is included directly by emoji. 

Can I use Pyodide instead Pygbag?

(+1)

I don't know, I've never used Pyodide to run games or call the pygame library. You'll have to try it yourself and let us know if it works well or not.

Okay I'll try it by myself and make you informed