Jump to content

Embedding game in website?


XHH
 Share

Recommended Posts

Hello,

 

I've made a game in phaser. It's all in a html file with the assets folder next to it. Now how do I actually put it on my website that is hosted on Google Sites? I'm very new to web development.

 

Thanks.

Link to comment
Share on other sites

Quickest way would be on an iFrame.

 

In your website use something like

<iframe src="gamebuild/index.html" name="bestgameever"    width="800" height="600" frameborder="0" scrolling="no">   <p>Your browser does not support iframes.</p> ></iframe>

Where "gamebuild/index.html" is the address of your game.

Link to comment
Share on other sites

Quickest way would be on an iFrame.

 

In your website use something like

<iframe src="gamebuild/index.html" name="bestgameever"    width="800" height="600" frameborder="0" scrolling="no">   <p>Your browser does not support iframes.</p> ></iframe>

Where "gamebuild/index.html" is the address of your game.

That one works   ^.^  Thank you!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...