phaserjs / facebook-instant-games

Phaser 3 Facebook Instant Games Examples
MIT License
48 stars 21 forks source link

Unable to load scenes other than GameShare #1

Open jairogloz opened 5 years ago

jairogloz commented 5 years ago

Hi, I've just started following the Facebook Instant Games in Phaser tutorial and cloned this repo to follow the instructions in the completed code, but I haven't been able to load any scene other than GameShare.

I've tried calling this.scene.start('MainMenu') alone but this has no effect at all. I've also added MainMenu to the scene section in the config var in boot.js like scene: [Preloader, MainMenu] but by doing so the app never loads, it gets stuck loading with 0%.

I'm pretty sure I'm doing something wrong or missing something, but I can't figure out what it is. Any help would be appreciated.

code-written-by-monkeys commented 5 years ago

I've wasted a day with that guide and frustrated that it's incomplete and poorly documented. Pretty sure you don't actually need this library. Just Phaser, and the FB libs.

bhgsbatista commented 5 years ago

You need to load your scene in index.html in order for it to be available in boot.js.

ferdousulhaque commented 5 years ago

I also face the issue, only able to share on FB. other than that, no functionality are working. I used the FB Instant Game documentation and Phaser library only and get the game working. This repo will help to understand the skeleton but not as expected. :(

zvermafia commented 4 years ago

I just use a phaser3-project-template with additional a script tag in the head section of the index.html file: <script src="https://connect.facebook.net/en_US/fbinstant.6.2.js"></script>

And so far everything is working fine