I have written the code for a card game using Python. I want to have a hosting site host my game so anyone can play it. However, I cannot figure out how to transform it into a website. I have tried deploying it using Netlify and itch.io, and both platforms were unable to get it to work. I even tried using ai to assist me, and when looking at the DevTools Console, here’s what the robot told me: “The 68 errors in pythons.js indicate that the PyGame WebAssembly runtime itself is failing to initialize properly.”
I am looking for assistance in getting my game to become a website. Since it works on my device, I believe this is possible. Can anyone assist me in getting my PyGame WebAssembly runtime to initialize properly?
I’m not able to help directly but if your explanation was clear on the approach you’re trying rather than making the reader infer details then someone who knows about this may be motivated to help.
Thank you! I will try following PygBag’s guidance to get a simple example running in my browser. I am currently using Chrome on my MacBook. Is that recommended? Would I have a better chance of success using Safari?
I have no experience with Safari, but Chrome (like Firefox) tends to have the latest browser API features, and WASM apps definitely run in it. I’d stick with that.
Hello again! As it turns out, your suggestion worked! After some unfruitful trials, I was able to turn my game into a website using pygbag on itch.io. Thank you so much for your suggestion!