O'Reilly logo

Monkey Game Development by Michael Hartlef

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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!

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required