简体   繁体   中英

Can't load assets from facebook instant game bundle

Does anyone know is there way to load assets from facebook instant game bundle. I'm using a Phaser 3 to render and load any assets. When I open facebook instant game on "testing" status. I get an error in console phaser.min.js:1 GET https://apps-[appid].apps.fbsbx.com/assets/example.png 404 It's working perfectly on localhost using facebook embedded player

Turns out when importing images i forgot to add "." in this.load.image function.

this.load.image("carPicture", "./assets/car.png");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM