Jump to content

Fb Instant Game Not Working


Aidid Alam
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...