[Python] How to use .png images with pygbag to put my python game on a website? (similar...

Discussão em 'Python' iniciado por Stack, Julho 20, 2025.

  1. Stack

    Stack Membro Participativo

    Pygbag uses my python code and translates it into WebAssembly bytecode. The code works locally but I then tried to use a hosting website such as Netlify and itch.io and put my html file into there. Both give the error:

    'cannot download game.apk'

    I created a game use python pygame to learn a lot more python but ended up creating a game I wanted to share without people having to download the files. So I found out about pygbag but I cannot find a work around this issue. A surface I create will work put actual png images don't. Anyone have any suggestions? (Also please let me know if you need more info)

    Continue reading...

Compartilhe esta Página