• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

uploading html5 game to WordPress

V

VaygrEmpire

Guest
does it support? I'm using paid version, and I don't see my game on my website.

Code:
<DIV align="center">
      <iframe src="http://www.myOwnSite.com/game/" scrollbars="0" scrolling="no" width="800" height="600" frameborder=0 name="game">
      </iframe>
</DIV>
I uploaded my game in "game" folder on WordPress. It's .com I got from GoDaddy. I saw one of 4 years old post about "WordPress" doesn't support javascripts but then I also found out 3 years old GameMaker article - which is where I got the code. But still not working.

Thanks for help in advance.
 
Last edited by a moderator:
C

Comedy Rotten

Guest
Ok, so I'm not sure how GoDaddy WordPress hosting works, but from the articles I read you do need to be able to upload your game to the folder. The form of your code will probably be something like the following:
HTML:
<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="http://www.myOwnSite.com/game/Index.html" style="border: 0; width:800px; height:600px;"></iframe>
For more info regarding the sandboxing security, see this article. Also, the width and height need to be set to the screen size of your game.

I have never used an iframe before, so hopefully someone else who has experience with this problem will respond.
 
V

VaygrEmpire

Guest
Ok, so I'm not sure how GoDaddy WordPress hosting works, but from the articles I read you do need to be able to upload your game to the folder. The form of your code will probably be something like the following:
HTML:
<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="http://www.myOwnSite.com/game/Index.html" style="border: 0; width:800px; height:600px;"></iframe>
For more info regarding the sandboxing security, see this article. Also, the width and height need to be set to the screen size of your game.

I have never used an iframe before, so hopefully someone else who has experience with this problem will respond.
Thanks! I managed to make it working with your link!
 
Top