Jump to content

Search the Community

Showing results for tags 'create canvas reuse'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. Hello, I want to take control of the canvas the game is rendered but when I specify the element ID to Phaser.Game parameter, it is creating a new canvas inside it. If I have this: <div id="taskContainer"></div>And I do this: new Phaser.Game(200, 400, Phaser.AUTO, "taskContainer");Phaser is creating the canvas and adding to the div like this: <div id="taskContainer"> <canvas></canvas> </div>OK, but I want to specify the canvas, if I have this: <div> <canvas id="taskContainer"></canvas> </div>With the same code, Phase is doing this crazy thing: <div> <canvas id="taskContainer"> <canvas></canvas> </canvas> </div>How can I say to Phaser I want to use the canvas I'm setting by itself and not as a parent container??? Thanks!!
  • Create New...