Embed games on your website

broken image

Local hostingĪdvanced users might want to consider running a local HTTP server with a server like nginx or Caddy. If you need to test on mobile, you can use Remote Preview instead of having to export repeatedly. If you really need your game to run from the desktop, use a desktop export option instead. If you run a game from disk you might see a messagebox reminding you of this ('exported games won't work until you upload them'). The best workflow is to test by previewing in Construct during development, and then immediately publish the game to the web after exporting. For security reasons browsers have some tight limitations on what can be done in a web page from a file:/// URL, and these usually stop Construct games from working. If you extract the exported zip to your computer and double-click index.html to run it, the game will start using a file:/// URL instead of a or URL, since the game is on disk and not on a server. Games will not work if you run them from disk. Exported games won't work until you upload them When the export finishes, you'll get a zip file which contains all the files to upload. To publish to web, use the Web (HTML5) option when exporting. This guide includes some useful information to know when publishing Construct games online. Construct projects are based on HTML5, which makes them perfectly suited for web publishing.

broken image