Hi everybody,
I know Phaser-3 is supposed to run just fine on IE11, and when I try any of the examples on labs.phaser.io, they indead do work.
However, though having no problems at all on any other browser, I find myself unable to get our game running on IE11 (locally), and I really, really wonder why. The error I’m getting is SCRIPT5009: "Int8Array" is not defined
at phaser.js(61763,1)
, followed by numerous errors of the kind SCRIPT5009: "Phaser" is not defined
.
I stripped down our code to the barest minimum, which only consists of the index.html
and phaser.js
and looks like this:
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Phaser Game</title>
<script type="text/javascript" src="phaser.js"></script>
</head>
<body>
<div id="game"></div>
<script type="text/javascript">
(function () {
var game = new Phaser.Game({
type: Phaser.AUTO,
parent: 'game',
width: 1024,
height: 768,
backgroundColor: 0xffffff
});
})();
</script>
</body>
</html>
Still, I’m getting the aforementioned error about Int8Array
not being defined, and Phaser
not being found (in this instance, right at new Phaser.Game(
).
I tried on various computers, as well as with various recent versions of Phaser 3 , always receiving the same errors, but only with Internet Explorer 11.
The line where Int8Array
is said to not be defined, is this one:
// Some shared 'private' arrays
var siNext = new Int8Array([ 1, 2, 0 ]);
I’m pretty desperate right now. Does anybody see any error in the above script? Or did anybody ever run into a similar issue? I’d also be really happy with any tips on what I could possibly try…