HTML5 to EXE help.
I know EXE files are not supported by GameSalad, but I read here on the forum about the Web2Exe application and how others have used it to get games onto Steam.
I'm currently in the process of editing my Android game to make it PC friendly (keyboard support, no onscreen buttons etc).
I've tried the Web2Exe application and it works perfectly, however I need help with a couple of things.
While running the game in EXE form, there is no way to quit from the game itself. This can be achieved by using the HTML5 APIs, but I'm a bit stuck with that. I added a new scene called quit and have the game switch to it when ESC is pressed (as advised in this discussion. https://forums.gamesalad.com/discussion/89397/a-long-way-home-released-on-steam/p3) but I don't know what code to write nor where to write it to accomplish this.
If anybody wants to hold my hand through this, I'd appreciate it. 😀
Get Screaming Loaf on Steam:
https://store.steampowered.com/app/1813910/Screaming_Loaf/
Comments
I think (I'm just doing a quick browse of the nwjs docs:
Add a player delegate as follows:
in the index file. In your game calling the Quite Game action will trigger the onEndGame delegate.
Thanks for your response. Unfortunately it doesn't seem to be working for me, or maybe I'm entering it in the wrong place.
If I wanted to close the game by changing scene to a blank scene named 'QUIT', how would I use the onCurrentSceneChanged API?
Get Screaming Loaf on Steam:
https://store.steampowered.com/app/1813910/Screaming_Loaf/
same idea just move the quite function to the onCurrentSceneChanged delegate instead and check for the scene name
Thanks, got it working :)
Get Screaming Loaf on Steam:
https://store.steampowered.com/app/1813910/Screaming_Loaf/
I have a couple of other queries.
Is it possible to have the mouse cursor hidden when the game is in full screen?
And also, a question to anybody who has made EXEs from html5 apps and put them on Steam; has anybody figured out if its possible to implement Steam leaderboards/achievements?
Get Screaming Loaf on Steam:
https://store.steampowered.com/app/1813910/Screaming_Loaf/
Quick google says it's not completely possible, though you should look into adding CSS cursor: none to the body in the index at least.
For Steam
I don't know if anyone had done it but you'd want to get someone to help you with this:
https://github.com/greenheartgames/greenworks/tree/master/docs
Their bug / feature request mentions why they don't implement leaderboards:
https://github.com/greenheartgames/greenworks/issues/12
and they suggest that you proxy request through your own server (presumably your server will have a way to validate the score)
Thank you for all your help.
Get Screaming Loaf on Steam:
https://store.steampowered.com/app/1813910/Screaming_Loaf/
Hi, I am starting in the same process that you already went through and I see that you were successful and were able to publish your game on Steam... congratulations! :)
I'm in the process of moving to html5 first and addressing the things that don't work or work differently... I'm posting things here that I find:
https://forums.gamesalad.com/discussion/98687/import-gs-mac-project-into-gs-online#latest
I suppose that with more or less work, I'll be able to convert the game to html5... and I would like to solve the next step, the conversion to exe
What tool did you use to convert the game from html5 to exe?
Any advice or comment you have, I will be more than grateful :)
Thanks
Hello!
Yes I did manage to get GameSalad game on Steam; the tool I used to package my html5 as an exe is called Web2Exe, it is downloadable here: https://github.com/jyapayne/Web2Executable
It is pretty straightforward to use. The only tricky bit is getting sounds to work, but it is possible.
Get Screaming Loaf on Steam:
https://store.steampowered.com/app/1813910/Screaming_Loaf/
Thank you very much, I'll do some tests to see how it goes