Hi all. First off, I'm not quite sure where to put this, but here goes. I was able to create myself a game using the Grok app, and it provided me a button to open and play the game, as well as downloading it. However, once downloaded, it becomes a bit tricky because there doesn't seem to be a way to run the thing off-line on my iPhone. Does anyone know a way to open and actually play an HTML game file on an iPhone instead of relying solely on the button provided by Grok?
Comments
I doubt this is possible.
Did you try opening it via the files app? if that doesn't load it into the browser and allow you to play it, I doubt this is possible. The game will not be pure HTML, there will be some Javascript involved at the very least which may be blocked locally on iOS.
Yeah, I tried.
It doesn't seem to work when I open it with the Files app. I was hoping that there would be an app or something that would help me open and run it locally, so I don't have to use the Grok app every time I want to play it.
A couple of ideas
Firstly, I want to say that I don't know much about either of these options so apologies if this is no help.
Firstly, you could solve the problem by hosting the files somewhere. I believe if you have the source in github it can serve them using a basic static files http server. I think this feature is called Github Pages so that might be worth a look. Or, if not, maybe you could find somewhere else cheap to host the pages. This probably does mean it would be hosted publicly which may or may not be what you want.
The other option - this only works if the problem you are having is with the external Javascript files, but you can probably ask Grok if it can build your game into a single html file with all the JavaScript and other resources smooshed into the source - ie so you might have a monstrously big script tag but not external references. You could keep source tidy and just have a build script that produces this. Perhaps then it might work if you open it from files. I've no idea if this will actually work or not but might be worth a try.
Thanks guys, it turned out
I only needed to download an HTML file editor. It is not the most accessible app, but at least it allows me to open the files I own.