tametick Posted December 16, 2013 Share Posted December 16, 2013 Hey,in pixi i can create my canvas and give it to the constructor, but it seems in phaser I can only give the constructor the parent tag. In some situations I need to create my own canvas element (e.g. with cocoonjs it needs to be "screencanvas" http://support.ludei.com/hc/en-us/articles/200862486-Screencanvas). How can I force phaser to reuse a canvas I'm creating rather than create its own? Link to comment Share on other sites More sharing options...
rich Posted December 16, 2013 Share Posted December 16, 2013 There's no reason why you couldn't add that attribute (push it directly on game.canvas), it just depends at what stage Cocoon parses the DOM. Link to comment Share on other sites More sharing options...
Recommended Posts