Godot Version
Godot 4
Question
Currently, I’m trying to make a game, but exporting it to html is so hard. Right now I need a http server for it to run properly (Which is not what I’m trying to do since I want it to be able to run as a standalone file [Maybe even good enough to run on chromebooks]). But even the offline one requires you to be online during the first boot (Which for some reason keeps saying I don’t have internet, even though I do).
What I’m trying to do now is just merge it with base 64, but it’s not going great, not to mention the file size. I tried the isolated app thing (And the PWA thing) but it won’t work. Any suggestions?
So the web export is not really a html file that you can just open, if thats what you mean. That would require it be compiled to JavaScript, which while possible, is an immense and painful task, and not supported by any engines. However, you can upload your project as a wbexport to something like Itch.io, which has all the web compilers built in. On that note, you might be able to find a web compiler that can be used to run your game, but I don’t know for sure. Im not fluent with web-exports.
1 Like
Exactly like the comment above said. Create an itch.io account, watch a youtube tutorial on uploading Godot HTML5 games to itch, you can make the page private so that nobody can access it until you are ready to release. Make sure the tutorial you watch is catered specifically to Godot, as one of the check-boxes is very important on itch and the game probably will not work if you don’t select it.
Turns out if you upload it to itch, then download the page, and remove the fluff, it compiles it for you. However, I kinda don’t wanna rely on this method, and plus I want to be able to have multiple pages, so I’m not so sure how well it works. By the way, this allows you to even play it offline (Which is great in my case)
What exactly is your goal of having an offline html based export, instead of a exe or other binary export?
Ideally, it’ll allow me to run it on something like a chromebook (Without linux or the trouble of a apk). Not only that but it would be really coinvent since I’m mostly gonna be working on the online variant (Which is mostly web based).
1 Like