
上QQ阅读APP看书,第一时间看更新
Exporting your game as an HTML5 website
Everytime you let your code run by pressing Ctrl + R on Windows or cmd + R on OSX, you have built all the files that are needed to run your code from a web server. In the folder of your project, Monkey has created a build
folder. Inside this folder, you will find an HTML5 folder with all translated HTML5 and JavaScript files and a data folder containing your resources.
If you want to run your game from a web space, all you need to do is copy and transfer all the content of the HTML5 folder to your web space. The web address for your game could look like this: http://www.yourdomain.com/MonkeyGame.html.
Remember that to play HTML5 games on your browser, you need one that supports HTML5!