Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Great game. How exactly did you convert PyGame code into HTML5? And was there a performance hit?

With pygbag

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

You need to take some precautions when programming the game, like using async in the main loop, but you can find everything in the documentation.

Performance drops quite a bit, for example the same game can run at 500 FPS locally and on the web it runs between 30 and 60, so you need to be careful with that, but you can make perfectly playable games if you optimize the code a bit.

So, it is really for very small to small games. Thank you for getting back to me.