Jump to content

Fb Instant Game Not Working

Aidid Alam

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,
        scale: {
            mode: Phaser.Scale.FIT,
            autoCenter: Phaser.Scale.CENTER_BOTH,
            parent: 'thegame',
           width: window.innerWidth,
           height: window.innerHeight
        physics: {
            default: 'arcade'
        scene: [welcomeGame,
    game = new Phaser.Game(gameConfig);

class welcomeGame extends Phaser.Scene{


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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