Once you are happy with your game, select File → Package and Download Game.
This will create a package of downloaded files that are ready to deploy. They should be in your download folder or default download location on your local drive. Each game is completely self-contained and does not pull data from any other source.
There are three ways to host our games/activities. With all options, you will unzip the game package/folder and move this folder to a convenient location on your webserver.
-
Launch the game in the “current” browser window.
This is the simplest way to deploy a game. Create a link to the “index.html” file in the game folder name. It should look something like this:
<a href="https://www.yourdomain.com/MyFirstGame_V01/index.html">My first game</a>
Place that link on any page of your site or LMS. Selecting the link will open the game in the “current” browser window. -
Launch the game in a “new” browser window.
This method requires some simple HTML code. This option is very similar to the “current-window” option listed above. You will add a “target” attribute to the URL like this:
<a href="https://www.yourdomain.com/MyFirstGame_V01/index.html" target="_blank">My first game</a>
Place that link on any page of your site or LMS. Selecting the link will open the game in a new browser window. -
Run the game as an iFrame island on an existing page.
This method requires some simple HTML code. Create an iFrame on a page with the source set to be your game folder. The iFrame must be the same size as the game’s dimensions. You should hide both scroll bars. It should look something like this:
<iframe src="https://www.yourdomain.com/MyFirstGame_V01/index.html" scrolling="no" style="width:800px; height:600px, overflow:hidden;"></iframe>
When the page is launched, the game will automatically run in the iFrame.
If you require more guidance or have any questions please mail us at support@h5engines.com or set up a consultation and demo here.