dbckd999 Posted August 4, 2018 Share Posted August 4, 2018 When start to Phaser code at window.onload = function() { var game = new Phaser.Game(800, 600, Phaser.AUTO, "game"); ... What is the role of "game"? (not var game) I've seen the API documentation, but I still do not understand. What I have understood so far the "game" refers to itself.. Link to comment Share on other sites More sharing options...
samme Posted August 4, 2018 Share Posted August 4, 2018 That's the parent argument. https://photonstorm.github.io/phaser-ce/Phaser.Game.html dbckd999 1 Link to comment Share on other sites More sharing options...
Recommended Posts