saibotlive Posted December 2, 2013 Share Posted December 2, 2013 Is there an easy way of embedding the canvas element within a specific part of a html pages body? For example I want to embed it in a div with id called game_container. Link to comment Share on other sites More sharing options...
saibotlive Posted December 2, 2013 Author Share Posted December 2, 2013 Ahh, Saw what I needed to do already :-) Link to comment Share on other sites More sharing options...
rich Posted December 2, 2013 Share Posted December 2, 2013 For those who might be wondering the answer - the div the game is inserted inside is the 4th parameter passed to the game constructor:var game = new Phaser.Game(1024, 672, Phaser.AUTO, 'game_container', { preload: preload, create: create, update: update }); shawnbless 1 Link to comment Share on other sites More sharing options...
Recommended Posts