如何解决如何在IE11中运行Firestore?
我已经用Phaser 3开发了一个浏览器游戏,并将高分数据存储在Google Firebase中。 我使用浏览器Chrome,Edge,Firefox或Safari没问题。但是通过在IE11中加载网站,我在控制台中看到了很多错误。在main.js中找不到任何语法错误:
href
还有index.html:
var graphics;
var touch = false;
var game;
window.addEventListener('load',function() {
//game configuration
game = new Phaser.Game({
"title": "infoteam-Universe","width": 1920,"height": 1080,"type": Phaser.WEBGL,"audio": {disableWebAudio: true},"backgroundColor": "#88F","parent": "game-container","physics": {
default: 'arcade',arcade: {
gravity: { y: 1080 },debug: false,}
},scene: [Boot],"scale": {
"mode": Phaser.Scale.FIT,"autoCenter": Phaser.Scale.CENTER_BOTH
},"input": {
activePointers: 3
},dom: {
createContainer: true }
});
});
class Boot extends Phaser.Scene {
constructor() {
super ("Boot");
}
preload() {
this.load.audio("background-soundtrack","assets/audio/background-soundtrack.mp3");
this.load.pack("preload-pack","assets/preload-pack.json");
}
update() {
//start first scene of game
this.scene.start("Preload");
/*if(!this.game.device.browser.safari || !this.game.device.browser.mobileSafari) {
this.game.config.audio.disableWebAudio = false;
console.log(this.game.config.audio.disableWebAudio);
}*/
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。