Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hi! I used something called pygbag, it can be installed using pip like any other python library. I don't remember which tutorial I used but there should be a few on youtube for it if you search something like "pygame web pygbag".

There's a pretty big performance hit, for some of my games like Kaya Kaya! it was so bad that for the web version I literally had to double the gamespeed (and set the max framerate to 30 instead of 60) for it to match the windows version. Also some music and sound effects don't play properly on web versions (can be heard in Kana Runes where sometimes the clicking effect doesn't play fully, or in Lylat where the boss theme has a pause at the start)

You can't really do anything about the sound, but if you optimise the game well enough / design the game for it, the fps hit can be solved (e.g. Lylat Escape runs at 60fps despite all the enemies and shots being fired because I lowered the resolution and made sure to not display things unnecessarily). 

I'd say it's worth it, a lot more people view and play browser games. Good luck!

Maybe it's worth using a JavaScript framework then. Thank you for getting back to me.