Aidid Alam Posted October 22, 2019 Share Posted October 22, 2019 Hey I'm very new in javaScript and Phaser. So I'm not sure what wrong I'm doing. But my game is not Loading .It just stuck on 0% FBInstant.initializeAsync().then(function() { let gameConfig = { type: Phaser.AUTO, backgroundColor:0x87ceeb, scale: { mode: Phaser.Scale.FIT, autoCenter: Phaser.Scale.CENTER_BOTH, parent: 'thegame', width: window.innerWidth, height: window.innerHeight }, physics: { default: 'arcade' }, scene: [welcomeGame, playGame, resumeGame, gameOver ] } game = new Phaser.Game(gameConfig); }); class welcomeGame extends Phaser.Scene{ Link to comment Share on other sites More sharing options...
Recommended Posts