Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How do I make my pygame work in browser?

A topic by Ninjaplum created Jan 27, 2024 Views: 249 Replies: 3
Viewing posts 1 to 2

I got pygbag to work, but I don't know how to put it into itch. Itch said I needed index.html, but pygbag didn't output that.

what i used: py -m pygbag --app_name Runner! --title Runner! --package runner "C:\******\main.py"

Moderator

So, what did pygbag export?

A folder called build. It didn't export it. It just left build so I assumed it's the output.

Moderator(+1)

So, look inside it. See which file you're supposed to open in the browser. That one should be named index.html, and if not, you can fix that.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.