Publishing Game onto Website

Monkey Forums/Monkey Beginners/Publishing Game onto Website

En929(Posted 2014) [#1]
Back when I coded in JavaScript, all I had to do was make sure that the HTML/JavaScript code was in the same folder as the images, music, folder and it worked etc. But, that doesn't seem to work with this Monkey version of HTML/JavaScript (the free version) I don't think. Is there something I'm missing?


MikeHart(Posted 2014) [#2]
I just copied the content of the build folder to my webspace. Means you need to have your content still inside the data folder.


Paul - Taiphoz(Posted 2014) [#3]
like Mike said if you open your .build folder you will find a folder called html5 inside that is your source and the required directories that it needs, you can either copy the html5 folder onto your website and link to the monkeygame.html file and it will work, or you can copy the content of the html5 folder and again link to the monkeygame.html file, I suggest keeping the html5 folder intact and then embedding your game in your website with an iFrame.


En929(Posted 2014) [#4]
Thanks, Mike and Paul. That worked.