Cedric Posted August 3, 2015 Share Posted August 3, 2015 Hi everyone, I've created a game with phaser and I'm now trying to inplement it on my main page.However I don't have any idea how to do so. I've searched a lot of forums but none gave me a solution :/Its a game from the premium course on zenva .its uploaded to the hostgator file manager and I can play it on belgiangameproduction.com/wp-content/html5games/M4 if someone could help me it would be awesome thanks in advance Link to comment Share on other sites More sharing options...
mrdotb Posted August 3, 2015 Share Posted August 3, 2015 On my wp site I do it like this:I put the game on a subdomain.Then I use the plugin iframe http://web-profile.com.ua/wordpress/plugins/iframe/.And the iframe shortcode on the page / article where you want to put the game. ex: [iframe src=http://subdomainmaybe.urlfthegamehere/" width="100%" height="500] Cedric 1 Link to comment Share on other sites More sharing options...
Cedric Posted August 3, 2015 Author Share Posted August 3, 2015 thank you for the reply mrdotb, I accualy did this and it worked: I used the domain belgiangameproduction.com/wp-conten/html5games/M4 as the src for the I frame. the scaling went all weird and I got like a scroll thing which isn't conveniant.Is there an other way to put my game on the page? like a div tag so I can use the "var game = new Game.Phaser(360, 400, phaser.CANVAS, "gameDiv");" method. Link to comment Share on other sites More sharing options...
Recommended Posts